为什么boxplot()影响项目符号索引大小?

问题描述 投票:0回答:1

以下具有新添加的boxplot()覆盖的散点图更改了'size ='的大小。项目符号索引编制的大小已增加。

ggplot(stats, aes(x=Genre, y=Gross...US,size=Budget...mill.))+
  geom_boxplot() +
  geom_point(aes(color=Studio)) +  
  geom_jitter(aes(colour = Studio))

这里是带有箱线图覆盖的散点图的图片:

enter image description here

上图中突出显示的是带有“ Budget ... mill。”的项目符号增加了尺寸的问题。

编辑:问题已解决。大小=预算...工厂。需要放置在geom_point()内部。

ggplot(stats, aes(x=Genre, y=Gross...US))+
  geom_boxplot() +
  geom_point(aes(color=Studio,**size=Budget...mill.**)) +  
  geom_jitter(aes(colour = Studio))
r ggplot2 boxplot
1个回答
0
投票

问题已解决。大小=预算...工厂。需要放置在geom_point()内部。

ggplot(stats, aes(x=Genre, y=Gross...US))+
  geom_boxplot() +
  geom_point(aes(color=Studio,**size=Budget...mill.**)) +  
  geom_jitter(aes(colour = Studio))`
© www.soinside.com 2019 - 2024. All rights reserved.