r - GGPlot 刻面 X 标签
问题描述
library(ggplot2)
d <- ggplot(diamonds, aes(carat, price, fill = ..density..)) +
xlim(0, 2) + stat_binhex(na.rm = TRUE) + theme(aspect.ratio = 1)
d + facet_wrap(~ color)
这里产生
如果您希望每列下的 XLABEL 居中,如下所示:
解决方案
推荐阅读
- three.js - 检查点位于多边形内 - 无法正常工作
- html - 当我尝试在离子卡中显示 Firestore 中的特定文档时出错?
- c++ - 为什么我不能用统一初始化来初始化字符串?
- python - 洛伦兹系统的龙格库塔常数发散?
- hibernate - Spring Boot 应用程序抛出 NonUniqueResultException
- firebase - Vuex 和 API 调用
- python - 如何使用 walk 函数返回每个文件的最深目录名和文件名?
- ios - MIFARE 只读和写保护块同时?
- php - 在另一个页面中调用一个页面会使网站变慢?
- regex - 用于匹配操作序列的正则表达式