r - 使用坐标翻转从上到下
问题描述
像这样使用 ggplot 时
data_frame(diamonds)
ggplot(diamonds,aes(cut)) +
geom_bar()
我得到了预期的情节,但是当我这样做时:
ggplot(diamonds,aes(cut)) +
geom_bar() +
coord_flip()
我翻转了绘图,但新的“y”值从下到上,是否可以翻转坐标并使值从上到下?所以“公平”将是最有价值的,然后是“好”,然后是“非常好”......等等。
解决方案
推荐阅读
- android - 我可以看到前台服务正在运行,但在“运行服务选项卡”中我只能看到一个进程正在运行
- javascript - 我可以通过 html 中的脚本标记属性将数组对象传递给 javascript 吗?
- apache-flink - Flink:处理删除在临时视图中过滤掉的记录
- wordpress - 在 WooCommerce 客户完成订单电子邮件通知中添加基于运输方式 ID 的消息
- c - 使用 C 将值打印到文本文件
- android - 在 Android Kotlin 的约束布局中设置适当的约束
- anylogic - 为什么延迟块为空时,Anylogic stopDelay() 函数会抛出错误?
- javascript - 在 vue 中使用颜色、百分比和度数输入生成手动线性渐变
- css - 单击closebtn时控制sidenav栏的宽度
- c# - 如何在 WPF 中记录方法并指定其返回类型