Questions tagged [plotrix]

Plotrix is a plotting library for the R programming language.

140 questions
0
votes
0 answers

break in the y axis in R

I am new to R so please forgive my ignorance (1 week in). I am trying to produce a scatterplot with a break at the y-axis so that it starts at 0 but then breaks before beginning at 20 (there are no data points between 0 and 20) I have tried a…
0
votes
1 answer

R plotrix, polar.plot without discontinuity

I am using the plotrix package to make the polar coordinates from my measurements. It looks that even when I provide measurements for all the polar cordinates from 1 to 360 degrees (or equally to 0 to 359) the first and last points are not…
Alex P
  • 31
  • 5
0
votes
1 answer

axis break in plot metaMDS

I have an abundance table of fungal species from 16 different samples (xylem tree tissue) belonging to three healthy classes. I want to visualize the similarity of these samples according to the health class. I have run metaMDS (vegan package) and…
Nanuk
  • 11
  • 1
0
votes
1 answer

axis.break does not move with axis R

I want to plot the vector 4:10 but from 0 to 10. I don't like the large gap in produces, and I want to create my own style of plot, so I write the…
Plinth
  • 289
  • 1
  • 13
0
votes
1 answer

Put background color behind rownames and colnames in plotrix::addtable2plot

I want to add a table on a r plot that I've created with the raster::plotRGB function. I've made some research and found that the plotrix::addtable2plotdo exactly that. The fonction is easy to use, however I've got a problem with background…
Bastien
  • 3,007
  • 20
  • 38
0
votes
1 answer

Histogram of two discrete series one by one in R

I have two vectors with different lengths in R, which contains integer number only (1,2,3,4,5). I want to plot histogram of them (in percentage, not in count) one by one. I tried to use multhist in the package plotrix, but there are two…
Yang Mei Lian
  • 75
  • 1
  • 11
0
votes
1 answer

specifying color to individual points in a radial plot using plotrix package radial.plot

I have 2 lists of data. a = c(0, 14400, 15000, 1600) b = c(0, 1.1, 2.3, 4.5) I would like to plot a graph using polar (radial) coordinates using radial plot. I want r=theta, so the values for the coordinates for r and theta are in the list "a". For…
Devang Akotia
  • 119
  • 10
0
votes
1 answer

Triaxial ratio diagrams in R, i.e. rotated axes

I would like to create a graph in R looking like this: It is a so-called triaxial ratio diagram to display ratios of plant nutrient contents. It needs a log-scale from 0.01 to 100, the axes cross at 1. I have found two scripts on this page,…
J.Doe
  • 1
  • 2
0
votes
0 answers

Unusual pyramid plot in R or matplotlib

I need to make something along the lines of a pyramid plot but not using demographic information. Essentially, I have several lists of percentages, and I want to plot the average (median) for each list (which I can pre-compute) in a pyramid plot…
James Lloyd
  • 127
  • 1
  • 4
0
votes
0 answers

Plotrix in Grid Extra: "no grobs' allowed in "gList"

I created a battleship plot using Plotrix: k<-battleship.plot(data, main="Distribution",xlab="Type",ylab="Phase", maxxspan=0.6,maxyspan=0.45) j<-battleship.plot(data2,…
0
votes
1 answer

R Polar graph segments with gaps

I'm generating a polar chart in R with plotrix. The angle is record hearding and the length is taken from the record timestamp. The dates are parsed with lubridate parse_date_time polar.plot( as.numeric(df$datetime), df$heading, …
fracai
  • 307
  • 2
  • 14
0
votes
1 answer

R -- plotrix -- multhist() -- How to change the bin labels?

I want to change the bin labels when using the multhist-function from the plotrix package. By bin labels, I mean the labels under each set of columns in the histograms. Thanks.
Mikkel Rev
  • 863
  • 3
  • 12
  • 31
0
votes
0 answers

drawing circles in R to show stats analysis

I'm trying to represent the number of times words are mentioned in a text through circles in R. I currently have a 2D array called allwords containing these words (15 of them in total) and then the number of times they are mentioned. for…
user4275811
0
votes
0 answers

How to change label format, distance between main text and plot, and put the number on the each parts?

I plot a pie chart but get some questions on how to modify it. My code is library(plotrix) df <- c(29, 29, 36,26) lbls <- c("Blue(29)","Gold(29)","Green(36)","Orange(26)") labelco <- c('Blue','yellow','springgreen3','darkorange1') pie3D(df,…
Lee Yee
  • 17
  • 1
  • 8
0
votes
1 answer

twoord plot in R

Using the plotrix package to make a twoord plot. My attempts look like this The problem I have is that it automatically does not plot the full left axis? Why is this? It is the same in this example here How can I plot with 2 different y-axes? How…
heinwe
  • 9
  • 1
  • 7