r - 如何压缩情节
问题描述
这里的总数超出了情节,谁能告诉我如何压缩这个东西,以便它的值显示在情节中
ggplot(data = impact_end_Last_fiscal_yr_qtr, aes(x = qtr_yr, y = gender_value)) +
geom_bar(stat="identity",aes(fill = gender))+theme_classic()+
geom_text(aes(label = stat(y), group=qtr_yr),
stat = "summary", fun = sum, vjust=-1)+
geom_line(data = line_plan_impact_end_Last_fiscal_yr_qtr, aes(x=m_year, y= gender_value, group=1,color="Plan"),size=1.2)+
geom_point(data = line_plan_impact_end_Last_fiscal_yr_qtr, aes(x=qtr_yr, y=gender_value),color="#288D55")+
scale_colour_manual(name="",values=Plan)+
theme(axis.line.y = element_blank(),axis.ticks = element_blank(),legend.position = "bottom", axis.text.x = element_text(face = "bold", color = "black", size = 10, angle = 45, hjust = 1),plot.margin = margin(0, 1, 0, 0, "cm"))+
labs(x="", y="End Beneficiaries (in Num)", fill="")+
scale_fill_manual(values=c("#284a8d", "#00B5CE","#0590eb","#2746c2"))+
scale_y_continuous(labels = function(x) format(x, scientific = FALSE),breaks = integer_breaks())[![my output][1]][1]
解决方案
推荐阅读
- c# - 如何按规则拆分数组块?
- java - 如何安装闭包编译器所需的Java?
- sql - 从 2 个连接的表合并到表
- php - 如何使用 Laravel 返回具有给定表结构的嵌套 JSON 格式
- gfs - Google 文件系统应用程序与客户端通信
- android - 无法设置状态栏透明
- react-native - 使用嵌套的 DrawerNavigator、TabNavigator 和 StackNavigator 进行深度链接
- asp.net - 如何从布局页面(不是典型的控制器/视图)中的表单显示 ModelState 验证失败结果?
- git - 如何在不影响我签出的工作文件夹的情况下从远程存储库重置我的整个 .git 文件夹?
- css - 如何不重复具有多个响应式背景的背景规范