Plotrix is a plotting library for the R programming language.
Questions tagged [plotrix]
140 questions
0
votes
1 answer
Does anybody know a function to avoid point labels to overlap in R?
Ternary diagram
Hello. Does anybody know how to use thigmophobe.labels from PLOTRIX? or any other function that voids the point labels to overlap? I am trying to make a ternary diagram with sediment data, but I got this problem and I have no idea…

Jefferson Horley
- 3
- 2
0
votes
1 answer
How to Change line chart color according to X value in r
I have tried this and its changing the graph color based on levels corresponding to Y-axis.
Is it possible to do the same but the graph should change the color based on the levels corresponding to X-axis…

aditya shukla
- 11
- 3
0
votes
1 answer
How I can set the size and/or color of symbols in a R plotrix::polar.plot on the basis of a data frame column?
I have a data frame "df" with three columns: distance, azimuth, intensity.
Through plotrix:polar.plot I got a plot using the following code
polar.plot(df$distance, df$azimuth, radial.lim=c(0,450),start=90,rp.type = "s", clockwise=TRUE, point.col=4,…

Roberto
- 23
- 4
0
votes
1 answer
Plotrix labels, adjusting the size/font/position?
I have been trying to create a risk radar using plotly and now plotrix, I have encountered limitiations with both (based on my need and also my skillset with R).
With plotly I had pretty much most of the things i wanted except the deal breaker was…

lachlindco
- 35
- 6
0
votes
1 answer
Unequal intervals on y-axis
I want to plot hazard ratios (hr) and confidence intervals from published summary data where I have the respective publication on the x-axis and the hazard ratios on the y-axis.
Currently, my y-axis reads: (-3, -2, -1, 0, 1, 2, 3), which gives an…

Pharmaco economics
- 21
- 7
0
votes
2 answers
Calculate daily parameters from a dataframe with hourly-values in rows and with several columns of interest
The dataframe df1 summarizes water temperature at different depths (T5m,T15m,T25m,T35m) for every hour (Datetime). As an example of dataframe:
df1<- data.frame(Datetime=c("2016-08-12 12:00:00","2016-08-12 13:00:00","2016-08-12 14:00:00","2016-08-12…

Dekike
- 1,264
- 6
- 17
0
votes
0 answers
Error in if (by == 0 && del == 0) return(from) : missing value where TRUE/FALSE needed
I am new to R. I have a dataframe qtr_1
I am trying to draw a 3D pie chart for the same using the code
qtr_1 <- sqldf::sqldf('Select Tier, Sales2016 from final_table where Quarter = 1')
qtr_1 <- qtr_1 %>% group_by(Tier) %>% summarise(sales_2016 =…

A. Boral
- 3
- 3
0
votes
1 answer
Change size of points in R using plot() with multiple added points()
The data is available here.
I am trying to generate the below plot (proportion of individuals~year), with the exception that I need to scale all the points (resF, resM, immF, and immM) to the number of observations for each column (resFN, resMN,…

Blundering Ecologist
- 1,199
- 2
- 14
- 38
0
votes
1 answer
Show complete plot line in gap.plot
I am trying to create a gap.plot using the plotrix package in R. I can create the broken axes well enough, but I'm trying to show a broken line within the plot at the same location and have drawn a blank.
Here's what I have so…

A.Benson
- 465
- 1
- 6
- 16
0
votes
1 answer
Incorrect Plot Color R
I am using the following code to generate a plot:
library(plotrix)
dat_fn = "emptiness.csv"
storage_fn = "final/results/emptiness_values.png"
data <- read.csv(dat_fn, header = TRUE, sep = "\t")
png(storage_fn)
sizeplot(data$PercentEmpty,…

Annie J.
- 13
- 4
0
votes
1 answer
Add units to Y axes
I'm using plotrix.twoord to compare two plots in a single graph using this code:
library(plotrix)
mempool<-read.csv("mempool-size.csv")
mempool$date <- as.Date(mempool$date)
fees<-read.csv("transaction-fees.csv")
fees$date <-…

Gecko
- 15
- 3
0
votes
1 answer
R Need to put a break in y axis
I need to put a break in y-axis between 25,000 and 200,000. Here is the code and I can't figure out why it doesn't give me the y-axis I need. I need the first portion to go from 0 to 25,000 in steps of 5,000 and the second part to go from 200,000…

Angus
- 355
- 2
- 12
0
votes
1 answer
R how to respectively add regression lines for two groups of points in two-y-axis plot using the plotrix package
I have created a two-y-axis plot to display two groups of points using the plotrix package, and the next step is to add regression lines for the two groups of points, respectively. But I have no idea how to handle this situation. Any suggestions?…

just_rookie
- 873
- 12
- 33
0
votes
1 answer
How to flip y-axis (positive to negative) without losing error bars with plotrix in R
I'm trying to make a graph using the package plotrix in R and I'm having trouble getting it to display the way I would like. Due to how the data is interpreted, positive numbers actually mean that the individuals in that group performed worse and…

N. Anderson
- 17
- 1
- 4
0
votes
1 answer
Drawing Pie3D Graph in R
I was plotting a data.frame in R in a pie graph. Here is the code
library(plotrix)
piepercent<- round(100*cause_wise$suicides/sum(cause_wise$suicides), 1)
png(file = "plots/cause suicide.png")
pie3D(cause_wise$suicides,labels = piepercent,explode =…

Rawshn
- 37
- 13