Questions tagged [plotrix]

Plotrix is a plotting library for the R programming language.

140 questions
2
votes
1 answer

Remove all axis values and labels in twoord plot

I want to remove all the axis including x, left and right y but retain the boundary of the plot. I tried to set xaxt and yaxt to 'n' but no luck. library(plotrix) twoord.plot(2:10,seq(3,7,by=0.5)+rnorm(9), 1:15,rev(60:74)+rnorm(15), …
Francis
  • 6,416
  • 5
  • 24
  • 32
2
votes
1 answer

Integrated version of two polar plots overlaid and stacked in R

I have recently discovered this visualization of the connection between obesity and hunger by JESS3: http://jess3.com/obesity-and-hunger-infographic/ As I like the information/space ratio I have tried to come up with a similar graph in R (i.e. a…
Carsten
  • 23
  • 3
2
votes
2 answers

R: How to add highlighted angle lines in polar plots?

Please consider the following sample polar plot: library(plotrix) testlen <- c(rnorm(36)*2 + 5) testpos <- seq(0, 350, by = 10) polar.plot(testlen, testpos, main = "Test Polar Plot", lwd = 3, line.col = 4, rp.type = "s") I would like to…
moabit21
  • 639
  • 8
  • 20
2
votes
0 answers

'at' and 'labels' lengths differ, 13 != 10 error in R

I have a data frame, df, that looks this this: a b c d e f g h i j k l m 1a 4 4 3 4 3 4 3 4.0 4.0 4 4 4 3.9 1b 9 9 9 9 9 9 9 8.1 8.8 9 9 9 8.5 1c 8 8 9 …
Warrior
  • 170
  • 3
  • 11
2
votes
2 answers

R Error with axis break code (plotrix gap.plot)

When I try to break axis of a plot I always get an error. I use plotrix pkg. My code so far: xlim <- c(0,1) ylim <- c(0,1) gap.plot(evcent(USAN_g_num)$vector, betweenness(USAN_g_num, normalized=T), gap=c(0.4,0.6),gap.axis="y", xtics=c(0,0.3,0.7,1)…
SWR
  • 507
  • 1
  • 8
  • 17
2
votes
1 answer

How to draw multiple centric circles in R

Hey I want to draw several circles in R with different radius. I did this with 'plotrix' and draw.circle: draw.circle (0,0,1) draw.circle (0,0,1.5) draw.circle (0,0,2) ... Do you know a faster and smarter way to do that?
jeffrey
  • 2,026
  • 5
  • 28
  • 42
1
vote
1 answer

Changin color and pch of Taylor diagram in R?

I want to change the pch shape and color of my reference data in taylor.diagram(), from plotrix package. If anyone can show me how to do it, i am really appreciated. The reference's model is highlighted by dark circle at the bottom of x axis. Thanks…
1
vote
1 answer

How to format custom polar.plot labels in R

I want to customize the labels of a polar.plot in R. I have the following plot: polar.plot(lengths = 0.4, polar.pos =33, main= "Richting en magnitude van de waterstroom", labels = ?, start=90, clockwise = TRUE, loglen=FALSE,…
1
vote
1 answer

How to plot Unequal Interval on x axis of a time series data?

I am using plotrix package to visualize changes in the data using colors. The data is available here. I am using below code for plotting the data. library(plotrix) my_colors1=c("red",…
mohitji
  • 129
  • 1
  • 10
1
vote
1 answer

How to make y axis labels horizontal but keep y-axis title parallel?

I would like to make my y axis labels horizontal, while keeping my y axis titles as parallel. When I try inputting las=1 into the twoor.plot()argument, nothing happens. I have also tried ylas=1, y_las=1, lylas=1, rylas=1, and nothing happens. The…
Ronnie
  • 13
  • 2
1
vote
1 answer

add text for each cell of a 2D matrix plot in R (plotrix and/or ggplot2)

A colored 2D matrix plot was created using the following codes: library(plotrix) testdf = data.frame(c(0,1,1),c(1,1,2),c(1,2,2)) color2D.matplot(testdf, show.values = FALSE, axes = FALSE, xlab = "", …
alittleboy
  • 10,616
  • 23
  • 67
  • 107
1
vote
2 answers

due to the addition of numbers the legend is half visible

In legend have long text. This text is half visible after I add the numbers. My code: library(plotrix) x <- c(16.6, 8.3, 11.7, 10.6,38.5,14.3) lbls <- paste(x,"%") labels <- c("TEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXTTEXT",…
Nikita Kagan
  • 75
  • 1
  • 7
1
vote
0 answers

How to extract cRMSE, StD and CC from Taylor Diagram in R?

I have used the taylor.diagram function to illustrate several models and observation data points. The function calculates and draws cRMSE, SD and CCs for each model and observation. I am unable to extract values for cRMSE, although I tried using the…
Hassaan
  • 11
  • 3
1
vote
1 answer

change font in plotrix' multhist

Suppose that data is library(plotrix) set.seed(42) a <- rnorm(100) b <- rnorm(100) + 1 and I would like to plot these using multhist()from plotrix and use Palatino font (or any other serif font). Unfortunately, multhist(list(a,b),…
bumblebee
  • 1,116
  • 8
  • 20
1
vote
0 answers

Adding a Y tick on the upper section of gap boxplot in R

I am trying to add a tick on my y-axis upper section so that the viewer of my boxplot can appreciate how high the outlier is. How can I add a Y gradation at 194000 on the y-axis? This is the code I used using the plotrix package on r. sample.size<-…
Martin
  • 31
  • 4
1 2
3
9 10