r - 如何按降序排列这个 ggplot2 图?
问题描述
ggplot(data = ames) +
geom_bar(mapping = aes(x = as.factor(Neighborhood),
y = Gr.Liv.Area,),
stat = "Summary",
fun = "mean" ,
fill = "sky blue") +
labs(title = "Overall Quality by Average Sales Price",
x ="Neighbourhood",
y = "Avergage living area (SqFt)") +
theme(axis.text.x = element_text(angle = 90, size = 8),
legend.position = "none")
解决方案
推荐阅读
- reactjs - 如何在 next.js 中的 patName 之前使用 slug?
- intake - yaml 文件中的数据集视图和访问控制
- google-cloud-platform - Google Cloud Console 上的项目 xxxx 超出了 TPU 配额
- javascript - 如何在 Onclick html 函数中使用它?
- c++ - “while(node!=NULL&&node->next!=NULL)”在链表中表示什么。如何有效地使用它
- javascript - 如何从标签下拉角度 8 中的数组对象中选择一个值?
- javascript - Django Javascript Ajax - 提交表单什么都不做
- php - 如何使用 3 或 if 条件 PHP ?我的意思是如果( a 或 b 或 c )
- r - 在R中将汇总数据重塑为垂直且整齐的数据
- python - Django 匹配查询不存在,但我得到打印