Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是 mt cars 数据集。 我想绘制 mpg 列的箱线图,如果我们不是显示错误,我们还必须指定 x 美学
( ggplot(cars,aes(y='mpg',x=))+geom_boxplot() )
您可以为 提供一个虚拟值x:
x
( ggplot(mtcars,aes(y='mpg',x=0))+geom_boxplot() )