ggExtra plot format: similar marginal plots for different plot dimensions
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: This question in regarding formatting plots produced using ggplot2 + ggExtra and is not related to any bug. require(ggplot2) #> Loading required package: ggplot2 require(ggExtra) #> Loading required package: ggExtra p1 <- ggplot(data = mpg,aes(x = cty,y = cty)) + geom_point()+ xlab("City driving (miles/gallon)") + ylab("City driving (miles/gallon)") ggMarginal(p = p1,type= "boxplot") The y-axis marginal plot in this chart is usually not similar to the x-axis marginal plot i.e. the width of the 2 boxplots are not similar. This problem become