Questions tagged [plotrix]

Plotrix is a plotting library for the R programming language.

140 questions
1
vote
1 answer

Conditional plotting if variable equals a particular string in R

I have a time series panel dataset similar to the following format, where V1 is character (here A,B,C...) and V2 is numeric(5,8,6...). I have 65 different items in V1 (total of about 50000 odd observations). I am trying to find a way to plot V2…
Shraddha
  • 155
  • 3
  • 16
1
vote
1 answer

Why aren't bearings aligning in proper azimuths in plot?

I am using plotrix package in R. The polar.plot function allows me to plot frequency of targets per bearing. I have this example: library(plotrix) ex <- c(100,100,100,100,100,120,120,140,150,170,200,200,200,200) tex <- table(ex)…
tohmav
  • 15
  • 3
1
vote
1 answer

Increasing space between plot labels

I am plotting a 3D pie chart using pie3D from plotrix package: dev.new(width=6, height=5) pie3D(weights, radius = 0.8, labels=paste(names(weights), labels, sep = "\n"), explode=0.05, mar=c(4, 4, 4, 4), border = F, col = my.col, main="Asset…
Mayou
  • 8,498
  • 16
  • 59
  • 98
1
vote
2 answers

Change the circumferential radial grid segment lines color in the radial.plot function. Plotrix

I have two datasets which contain values for a radial plot and colors for the radial grid lines of this plot. First dataset: #data 1 values <- c(0.179615044, 0.011908401, -0.342792441, -0.154263864, -0.251553369, -0.234413350, …
Mehdi Nellen
  • 8,486
  • 4
  • 33
  • 48
1
vote
1 answer

Barplot with Categorical X Axis

I am trying to generate a bar plot with a categorical X axis and two different y axis. I am trying to use twoord.plot to generate the bar plot as follows: x <- c("A","B","C","D","E") ry <- c(0.1,0.2,0.3,0.4,0.5) ly <-…
Ravi
  • 3,223
  • 7
  • 37
  • 49
1
vote
0 answers

`draw.circle` sizing issues

If a draw a circle like the following: plot(0.5,0.5,axes=FALSE,ylim=c(0,1),xlim=c(0,1),asp=0) axis(1,cex.axis=1.5) axis(2,cex.axis=1.5) library(plotrix) draw.circle(0.5,0.5,0.5) I would expect the circle to be perfectly bounded by 0 and 1 as I…
user1320502
  • 2,510
  • 5
  • 28
  • 46
1
vote
2 answers

Rescale axis in grouped scatter plots with use of axes breaks

The data for some of these types graphs that I'm graphing in R, http://graphpad.com/faq/images/1352-1(1).gif has outliers that are way out of range and I can't just exclude them. I attempted to use the axis.break() function from plotrix but the…
crazian
  • 649
  • 4
  • 12
  • 24
1
vote
1 answer

Consistently shading row in addtable2plot - plotrix

I'm regularly generating histograms from simulated data, and find it quite helpful to attach an associated decile table for the data. I've been doing this with the addtable2plot function from plotrix. I also find it useful to highlight the row in…
user1445246
  • 303
  • 4
  • 14
0
votes
0 answers

How to display a boxplot with a missing y-axis range using gap.boxplot (base r)? (almost there, struggling with an error)

I want to create a nice boxplot with this dataset (I called the data set 'data_N3_minmax'): I first used this code: label=c("V1", "V2", "V3", "V4", "V5", "V6", "V7") boxplot(data_N3_minmax, xlab="", ylab="", names=label) This code produces this…
Laura
  • 35
  • 5
0
votes
0 answers

Customize x and y values scale limit on Taylor diagram

I have a problem with customizing the x and y values limit scale in Taylor diagram function from library(plotrix). On this image, I want to change the limit of x and y values to be 3. taylor.diagram(ref=g1, model=b1,…
0
votes
0 answers

add a line on a plot with color depending on the value

I made an empty plot to insert different figure inside. On the top I have a structure and below I would like to insert a graphical plot with point + curve linking the points. I also would like to set the color depending the value of y. I also would…
Patrick Parts
  • 203
  • 2
  • 9
0
votes
2 answers

Error while knitting R-markdown to pdf: must be a finite number

Knitting my File produces the error message down below: This is how my File starts: Unfortunately, I couldn't try anything as I have no idea what the error message has to do with the displayed information. I hope to knit the document to a pdf once…
0
votes
1 answer

how to change xlim and ylim on a Taylor diagram in r

I'm new to R and basically teaching myself programming. I am struggling to increase the scale of a Taylor Diagram. I have been at it for hours, I tried. # display the diagram with the better model oldpar <- taylor.diagram(obst, MOHCREMO2015, ref.sd…
Pearl
  • 3
  • 2
0
votes
1 answer

In R, how to fill gradient color for neighboring districts from a centroid, using geospatial data of districts in a state of India?

In my specific requirement, I want to color just the neighbouring districts. First, I have downloaded the…
LeMarque
  • 733
  • 5
  • 21
0
votes
1 answer

Multiple Taylor diagram in one Figure in R?

I am trying to plot taylor diagram for each data.frame (i.e., Precipitation, Max_Temp, and Min_temp) on same figure. Each data.frame have a ref observation and model outputs represented by (A1,G2, and G3). Any help would be…
Hydro
  • 1,057
  • 12
  • 25