ggplot boxplot - length of whiskers with logarithmic axis
问题 I'm trying to create a horizontal boxplot with logarithmic axis using ggplot2. But, the length of whiskers are wrong. A minimal reproducible example: Some data library(ggplot2) library(reshape2) set.seed(1234) my.df <- data.frame(a = rnorm(1000,150,50), b = rnorm(1000,500,150)) my.df$a[which(my.df$a < 5)] <- 5 my.df$b[which(my.df$b < 5)] <- 5 If I plot this using base R boxplot() , everything is fine boxplot(my.df, log="x", horizontal=T) But with ggplot, my.df.long <- melt(my.df, value.name =