Plotrix is a plotting library for the R programming language.
Questions tagged [plotrix]
140 questions
0
votes
1 answer
White lines in gradient.rect from R's plotrix package
Anybody have a solution for removing the white lines seen here in the graduated rectangles at the top of the plot? These are produced with gradient.rect from the plotrix…

Unstack
- 551
- 3
- 7
- 13
0
votes
0 answers
Drawing a 3pt arc for an NBA basketball court
I'm using plotrix in R to draw NBA court features for plotting basketball shots. I'm having trouble getting the arc of the 3pt line exactly the way I want it. Using draw.arc and draw.circle allows the top of the arc to float. The top of the arc…

Luke55122
- 1
- 2
0
votes
0 answers
Adding error bars to plotrix polar plot
I have been trying for quite some time to create error bars in a polar plot using plotrix.
While the scatter function were no issue, I was unable to add the error bars, because when I add for example the lines with a second polar plot with radian…

Carsten
- 23
- 3
0
votes
1 answer
Put two values on top of each bar in a histogram
I have the following data,
SampleID Pos Dep Pvalues
sample_1 849 62 0.02755358
sample_1 859 63 0.07406833
sample_1 864 63 0.00351564
sample_1 883 60 0.02780868
sample_1 893 58 0.00451450
sample_1 895 58 …

user2960593
- 87
- 2
- 10
0
votes
0 answers
how to save a graph with multiple functions to png using type="cairo"
I successfully created a script which produces a nice plot in RStudio:
abscissa = nrow(LoopVariable)
library(plotrix)
plotCI(1:abscissa, LoopVariable[ ,13],
uiw=LoopVariable[ ,"F_corrected_normed_error"], err="y",
…

Johannes
- 69
- 1
- 7
0
votes
0 answers
Population Pyramid in Plotrix freezes r
this method of creating a population pyramid worked for me once, and somehow freezes my RStudio now, so I need to restart it each time and I do not progress...
Would be grateful if someone could let me know what makes R stop...
Males <-…

Asiack
- 47
- 8
0
votes
1 answer
How to set uniform bar width in multi-histogram plot in R
I am reading a dataset "Dummy_data.csv" with 26 columns and 4288 instances, where there are overall 17 parameters (columns) which are important for our data analysis. 6 out of 17 parameters i.e. (param1, param2, param3, param5, param6, param7) are…

somnathchakrabarti
- 3,026
- 10
- 69
- 92
0
votes
2 answers
Plot two ranges on y-axis
I'm trying to edit the y-axis so it only plots ranges from -20 to 100 and 20 to 100.
This is to remove the big empty white space that is occurring between -25 and +25 as I do not have data plotted within this region.
Below is what I have managed so…

user2528935
- 25
- 1
- 4
0
votes
3 answers
Show Up only one Piece of a Pie Chart
In plotrix I would like to make a pie chart like this:
pieval<-c(2,4,6,8)
pielabels<- c("We hate\n pies","We oppose\n pies","We don't\n care","We just love pies")
lp<-pie3D(pieval,radius=0.9,labels=pielabels,explode=0.1,main="3D PIE…

Mehdi Nellen
- 8,486
- 4
- 33
- 48
0
votes
2 answers
radial labels clumping together in radial.plot R
I have been working on generating a radial plot using the plotrix package in R. Things have been great, however the radial labels clump on top of one another. As the real data in this set is rather large I would prefer to not have any radial labels…

Parulidae
- 11
- 1
0
votes
2 answers
R: help needed improving a function for changing arrow colours from starting point to end point
I have the following function in R that draws arrows changing colours:
require(plotrix)
color.scale.arrow = function(x1,y1,x2,y2,first.col,second.col,
lwd= par('lwd'),lty=par('lty'),angle=30,length=0.25) {
x=mapply(seq,x1,x2,length.out=256) #…

Abdel
- 5,826
- 12
- 56
- 77
0
votes
1 answer
Control over axis in twoord
G'day
I have plotted a combination bar and line graph using twoord, with finical years as the x axis.
Please see example
a=c(50,75,80,100,110)
b=c(500,750,800,1000,1100)
finyr=c("2001-02","2002-01","2003-04","2004-05","2005-06")…

user1804953
- 1
- 1
0
votes
1 answer
How to replace axis in gap.barplot in R
I've been trying to figure out how to replace the x-axis in gap.barplot in R. First, I have an issue with labeling:
Attached is my code:
Samples Conc stdlo stdhi
SampA 5000 0 0
SampB 100 0 11
SampC …

crazian
- 649
- 4
- 12
- 24
0
votes
0 answers
y axis labeling in plotrix (gap.boxplot)
I have two outliers I do not want to omit from a plot so I am using gap.boxplot in the plotrix package. The range is great enough that I made two breaks. The lower range should be 0-400, middle 2050-2150, and upper 4850-5000. I've made a plot I am…

user2283982
- 1
- 2
0
votes
1 answer
plot level lines (2 circumferences) on a 3d plot
I'm trying to plot the two circumferences with dimensions xy together with the 3d plot and colour the intersection of the two circles, how can I do that?
# objective function
x <- seq(-1,1,.1)
y <- seq(-1,1,.1)
z <- x^2 +…

nopeva
- 1,583
- 5
- 22
- 38