Plotrix is a plotting library for the R programming language.
Questions tagged [plotrix]
140 questions
1
vote
1 answer
Plotting Rectangles with Fill Gradients Determined by Group and Proportions
I am trying to plot a bunch of rectangles with the fill being color gradients determined by a proportion.
To start with, I have a Data Frame like so:
sampleID 1 2 3 4 5 ... 100
sample1 1 1 1 1 1 ... 1
sample2 1 1 1 1 1 ... 1
sample3 2 2 2 2 2 ...…

EvoBio721
- 13
- 5
1
vote
1 answer
twoord.plot axis changing
I am using twoord.plot for the first time, and I am having trouble getting the x axis set to years for a time-series data set. I have two different y-axes on different scales. Here is the code that I am working with.
#Install…

Canaancb
- 29
- 1
- 3
1
vote
2 answers
R - How to assign color for values with color2d.matplot
My question deals with the color2d.matplot function from the plotrix package. The function is documented here.
I have this output:
Produced by this code:
library(plotrix)
# model parameters
spaces <- 400
agents<- 300
prop_black = 0.5
prop_white =…

Thev
- 1,105
- 2
- 13
- 24
1
vote
0 answers
Is there any possibility in pie3D (package plotrix) to connect the labels with the chart?
I want to connect my value Label with the pie Chart. I am using pie3D, but didn't find any Option.
Here my current code and the pie Chart I get:
par(mfrow=c(3,2))
for (i in seq_along(vec1)){
#Data for pie
#select the column i of varcomp
r<-…

Olympia
- 457
- 8
- 19
1
vote
2 answers
Pie chart main title with same vertical position as normal plot
I want to plot a normal plot and a pie chart (plotrix package) side-by-side via par(mfrow = c(1, 2). The main titles of both graphics should have the same vertical position. However, by default both main titles have a different positioning.…

Joachim Schork
- 2,025
- 3
- 25
- 48
1
vote
1 answer
R: scatterplot3d with broken y axis
In R, I am trying to plot a 3D scatter plot with the following code:
library(scatterplot3d)
mtcars$pcolor[mtcars$cyl==4] <- "red"
mtcars$pcolor[mtcars$cyl==6] <- "blue"
mtcars$pcolor[mtcars$cyl==8] <- "darkgreen"
with(mtcars, {
s3d <-…

rororo
- 815
- 16
- 31
1
vote
1 answer
Taylor diagrams in R
I have not used plotrix before but I am trying to create a taylor diagram to show the SD and RMS errors between reanalysis wind speed data and modelled wind speed projections from RCM RCA4 forced by 5 different GCM.
The script I am using can be…

Charlie Leaman
- 21
- 1
- 4
1
vote
1 answer
Modify axis size when using gap.plot
I am creating a plot with axes breaks using the package plotrix, but the standard cex.axis does not seem to work when I build a gap.plot.
Do you know how to proceed to modify the size of the axis?

atalantafugiens
- 423
- 6
- 16
1
vote
1 answer
Adding a third line to a twoord plot
I have a twoord plot produced with the plotrix package and would like to add a horizontal line representing a particular value to it. The plot is all set up but I need help adding the line.
Here is some sample code:
fake <- matrix(c(1, 2, 3, 4, 5,…

heat763
- 13
- 3
1
vote
1 answer
How to offset lines in a radial plot?
I used the radial.plot function from the plotrix package to create a graph illustrating how well a sample fits into a number of different categories. The result for the example given below looks like this:
As can be seen I am already using…

Max K.
- 13
- 3
1
vote
1 answer
Change symbol size in R function plotrix::polar.plot()
Is there a way to change the size of the plotted blue circles produced by:
library(plotrix)
polar.plot(1:36, seq(0,350,by=10), rp.type='s', point.col='blue')
Hopefully, there is some sizing parameter to this function.

Oleg Melnikov
- 3,080
- 3
- 34
- 65
1
vote
0 answers
in R convert multhist to multiple lines (but not for density)
I have a data structure with 21 lists of numeric values which I wish to create a histo-graph for, but instead of bars I would like lines instead as it is easier to visualise for 21 series of data on one graph, and also without being a density, i.e I…
1
vote
0 answers
R plotrix radial.plot Remove Label Background
I'm using radial.plot from the plotrix-package to make some radial plots. The scripts are working fine, but I dont like that the labels have a white background (the background is overlapping with the radial plot). Is there a way to remove the…

Jadabu
- 85
- 1
- 2
- 6
1
vote
1 answer
floating.pie in plotrix in R
I'm using R. My ultimate objective is to have a GIS map of Minnesota at the county level, and in each county there'll be a pie chart, representing the proportion of primary, secondary, and tertiary people employed.
I have a dataframe containing…

wwl
- 2,025
- 2
- 30
- 51
1
vote
0 answers
gap.barplot error bars not plotting
I am desperately trying to find a way to plot custom error bars in gap.plot.
I used the code below but it is not working.
Thank you
b <- t(matrix( c(50.84033606,119.3277309,452.1008396,1971.0084,
…

B.Durante
- 41
- 3