0

我如何才能在同一个地块上将以下两个地块叠放在一起?

此外,我想在图的左侧有第一个图的 y 轴单位,在右手边有第二个图的 y 轴单位。我还希望将 x 轴分别放在绘图的顶部和底部。

ggplot(data=diamonds, aes(price)) + geom_density()

ggplot(diamonds, aes(y=price, x = clarity)) + geom_bar(stat="identity")
4

0 回答 0