首页 > 解决方案 > r用ggridge绘制错误不同的行数

问题描述

使用 ggridges 时,我收到一个错误,说参数暗示不同的行数:2、1536

知道发生了什么吗?

Picking joint bandwidth of 0.181
Don't know how to automatically pick scale for object of type quosure/formula. Defaulting to continuous.
Error in data.frame(..., check.names = FALSE) : 
  arguments imply differing number of rows: 2, 1536

library(ggplot2)
library(ggridges)

ggplot(iris, aes(x = Sepal.Length, y = Species)) + geom_density_ridges()



 packageVersion("ggplot2")
[1] ‘2.2.1’
> packageVersion("ggridges")
[1] ‘0.5.0’

标签: rggplot2

解决方案


推荐阅读