更改geom_col中的字体大小aes填充组名称

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

我正在使用aes(fill = dummy变量)创建一个条形图,所以我有4个条形图:我基本上显示了2x2模型的比例 - 如何更改不同组的名称字体大小?

ggplot(summary2, aes(story, prop_agreement)) + #story is either "Freedom" or "Cyber" 
geom_col(aes(fill = Mindset), position = "dodge", alpha = .7) + #mindset is either "Doubt" or "Control"
scale_fill_manual(values = wes_palette(name="Moonrise2", n = 2)) +
labs(title = "Proportion of agreement in Control vs Doubt, by Story", 
              x = "Story", 
              y = "Proportion of agreement") +
theme_minimal()

问题:如何更改字体大小,以了解网格/自由,怀疑/控制在图中的显示方式?

r size font-size fill geom-col
1个回答
0
投票

这是我正在使用的情节>>我想改变思维模式的字体大小:控制/怀疑和故事:网络隐私/言论自由

this is the plot I am working with >> I want to change the font size of the legends for mindset: control/doubt and for story: cyber privacy / freedom of speech

© www.soinside.com 2019 - 2024. All rights reserved.