我用它geom_point(data,aes(x=...,y=...))+geom_point(shape=1)来绘图。问题是我想改变镂空的线宽。 circle.size用于改变直径并fill用于改变颜色。我没有找到执行此操作的参数。
我们想使用拼凑来更改标签的颜色和大小,但没有发生任何变化
library(ggplot2)
library(patchwork)
p1 <- ggplot(mtcars) + geom_point(aes(mpg, disp))
p2 <- ggplot(mtcars) + geom_boxplot(aes(gear, disp, group = gear))
p3 <- ggplot(mtcars) + geom_bar(aes(gear)) + facet_wrap(~cyl)
# Add title, etc. to a patchwork
p1 + p2 + plot_annotation('This is a title', caption = 'made with patchwork')
# Change styling of patchwork elements
p1 + p2 +
plot_annotation(
title = 'This is a title',
caption = 'made with patchwork',
theme = theme(plot.title = element_text(size = 16,color="red"))
)
# Add tags to plots …Run Code Online (Sandbox Code Playgroud) r ×2