I've read all the posts on R boxplots and dealing with outliers, and I can't simply delete/remove the outliers but my outliers are so high that my boxplots are essentially lines. I saw this post on a similar issue: https://stats.stackexchange.com/questions/114744/how-to-present-box-plot-with-an-extreme-outlier
But I don't know R well enough to even know what kind of code was used to make those plots.
Here is my example data that I've been trying to make look nice without hiding values.
Inhibitor Trial2 Trial3
grak 0.20 0.45
grab 11.00 31.55
hhus 0.21 0.18
hhuf 0.341 0.32
kkul 1.66 0.80
kkju 0.45 0.30
juik 0.30 0.20
jtui 0.80 0.40
test 0.233 0.36
boxplot(df$Trial1, df$Trial2, ylab="Rate", xlab="Trial")
I saw this post as well: https://stats.stackexchange.com/questions/63203/boxplot-equivalent-for-heavy-tailed-distributions and was trying to make this happen for my data but I have no idea how to make it work with more than 1 x value, and I get errors at almost every step of the way. The main error popping up is after I followed the very last example and I tried to create my boxplot.
Something like below:
I was trying to make this example graph too as this is an option that seems good as well (below):
I used this code but I got the following error:
df <- read.csv("Inhibitor.csv", header=TRUE)
xout <- boxplot(df$Trial1, df$Trail2, horizontal=TRUE)$out
xin <- df[!(df %in% xout)]
noutl1 <- sum(xout<median(df$Trial1))
noutl2 <- sum(xout<median(df$Trail2))
nouth1 <- sum(xout>median(df$Trial1))
nouth2 <- sum(xout>median(df$Trail2))
boxplot(xin, horizontal=TRUE, ylim=c(min(xin)*1.15, max(xin)*1.15))
Error in FUN(X[[i]], ...) :
only defined on a data frame with all numeric variables
I essentially want my main boxplots to be visually appealing (ylimits between 0 and 10), and then add a stripplot on top with ylimits between 10 and 30 and just the points of the outliers. I am open to suggestions if anyone has other means of showcasing data with extreme outliers. Thank you all!