Questions tagged [plotrix]

Plotrix is a plotting library for the R programming language.

140 questions
3
votes
1 answer

Adding bias in Taylor diagram in R

I am using the taylor.diagram function in the plotrix package e.g. obs = runif(100,1,100) mod1 = runif(100,1,100) mod2 = runif(100,1,100) mod3 = runif(100,1,100)…
SnowFrog
  • 1,162
  • 4
  • 19
  • 38
3
votes
2 answers

Plotrix R package polar.plot symbol overwrite

I'm using a polar plot to describe satellite position during a time series. The following question uses the polar.plot function from the R package plotrix. An example…
Nate
  • 768
  • 3
  • 9
  • 17
2
votes
1 answer

recover from R plotrix forcing the label to '1' if the population plot has one entry

So I have this weird behaviour illustrated in the two MWE examples below library(plotrix) pyramid.plot(c(10,5), c(7,5), labels=c("test","test1"), ) The label prints as expected when you have two or more entries for the lx…
bioSlayer
  • 85
  • 5
2
votes
2 answers

box without space in multhist

Suppose data set.seed(42) a <- rnorm(100) b <- rnorm(100)+1 which I would like to plot side-by-side using multhist(). multhist(list(a,b), yaxs="i") Now I would like to draw a box around them box(which = "plot", lty = "solid") which gives me with…
bumblebee
  • 1,116
  • 8
  • 20
2
votes
0 answers

how to produce gap.barplot with bar stack (with different color) in R?

I want to produce gap.barplot with stack (for example like this: https://www.eclipse.org/forums/index.php/t/487795/). But, i could not figure out how. Or, is there a way to do y-axis break in a histogram? this is the my data: dt <-…
Batbr
  • 61
  • 7
2
votes
0 answers

Only top half area with polar.plot?

I wonder whether there is any possibility to limit the the area of the polar chart to the top half area using polar.plot from package plotrix, i.e. plot only area between 0° and 180°? I want this graph look like this graph EDIT Sorry, here is a…
2
votes
0 answers

How to setup the background color on a radial plot?

I need to draw a target. I have selected the plotrix library. My current result and code are below: library(plotrix) pmax <- 30 rho <- seq(pmax, 7.5, by=-2.5) phi <- seq(0, 360, length=10) radial.plot(rho, phi, rp.type = "s",…
Nick
  • 1,086
  • 7
  • 21
2
votes
1 answer

Plot many line charts on top of gantt chart, quickly/scalably

Objective Chart: (Made with Photoshop) Monitor a janitor's presence in and out of a hall. Blue is Janitor 1, Brown is Janitor 2. Line represents number of guests present in hall (scale is relative to itself i.e. ymin=0, ymax=max.visitor.value, no…
Robert Tan
  • 634
  • 1
  • 8
  • 21
2
votes
1 answer

Handling axis with dates in twoord.plot (remove axis 3)

I am trying to use twoord.plot with different dates on x axis and counts for ly and percentages for ry, and I want to remove axis 3 or change its color. Setting axes = F does not work, neither does xaxt = 'n'. In fact, axes = FALSE gives me this…
Lil
  • 23
  • 6
2
votes
1 answer

How to add plot to gap.barplot in plotrix package?

I'm the R novice and I need some help. I'm trying to add second plot to one created in gap.barplot(), but failing. I have two vectors: y <- as.numeric(c(92, 8, 7,6,5)) z <- as.numeric(c(7.5, 5.9, 5.2, 4.5, 2.3)) Plotting the first one is…
2
votes
2 answers

plot time series with discontinuous axis in R

I want to plot a time series, excluding in the plot a stretch of time in the middle. If I plot the series alone, with only an index on the x-axis, that is what I get. The interior set of excluded points do not appear. x <- rnorm(50) Dates <-…
RGecon
  • 115
  • 2
  • 10
2
votes
0 answers

Banding pattern in R-generated gradients that is Mac-specific

When using plotrix functions to generate a smooth gradient, I get banding patterns in the gradient on a mac, but see no such artifacts on a linux system. I'm looking for suggestions that may explain why this happens and how to fix it on…
chrisamiller
  • 2,712
  • 2
  • 20
  • 25
2
votes
0 answers

Plotting map facets using R

I am trying to plot lat/long using PlotOnStaticMap function from the RgoogleMaps library in R. library(RgoogleMaps);library(plotrix); mydata <- read.csv(file=name,header=T,sep=",") map1 <- PlotOnStaticMap(lat = mydata1$latitude, lon =…
Vishal R
  • 1,279
  • 1
  • 21
  • 27
2
votes
1 answer

Adding arrows to plotrix gap.plot() with y-axis breaks

I'm trying to add confidence intervals to a gap.plot made with the plotrix package when there is a y-axis break. Here is a MWE: twogrp=c(rnorm(5)+4,rnorm(5)+20,rnorm(5)+5,rnorm(5)+22) gap.plot(twogrp,gap=c(8,16), xlab="X values",ylab="Y…
user13317
  • 451
  • 3
  • 13
2
votes
1 answer

Error bars are not plotted when axes are reversed (plotCI from package plotrix)

I want to change the point of origin for a plot with vertical and horizontal error bars. I'm using the plotCI function from the 'plotrix' package for plotting. A very short reproducible example: x <- c(1, 2) y <- c(3, 4) err.x <- c(0.5, 0.2) err.y…
swolf
  • 1,020
  • 7
  • 20
1
2
3
9 10