r - 如何更改/添加标签到条形图填充 + 如何在条形图内部或外部显示数字?
问题描述
relationship_bw_Polattrev_fbse_plot<-ggplot(data = anes_sm, aes(x= polattrev_recoded, fill=fbse_recoded)) +
geom_bar(position="dodge") +
labs(x = 'How often do you pay attention to what’s going on in government and politics?',
y= 'Frequency',
title = 'Relationship between attention to politics and government and if sees politics online')+
theme_bw()
relationship_bw_Polattrev_fbse_plot
我想更改我的标签:fill= variable 另外,如何将数字添加到各个条形?
解决方案
推荐阅读
- gooddata - 如何将数据分析迁移到 AWS?
- sql - 获取具有重叠繁忙时间的可用日期间隔
- kubernetes - 如何将来自 kind k8s 集群的传出流量转发到 sshuttle 连接的网络?
- angular - 每当我尝试从控制台构建一个新的离子项目时,它都会给我,npm ERR!无法读取未定义的属性(读取“isServer”)
- webhooks - 如何使用 API 触发的 webhook 回复自定义标头
- typescript - 在 TypeScript 中从泛型类型初始化属性
- db2 - 无法为 IBM Cloud Db2 选择 Lite 套餐
- api - REST API 中的什么响应代码对应于由于查询参数而找不到资源?
- python - 从目录读取镶木地板文件时,pyspark不保存
- ringtonemanager - 铃声管理器安卓 11