问题描述
我正在使用 ggplot 库中的 facet_grid 创建一个由 4 个部分组成的图形。我想在这里做的是增加“pcu2”分区的大小。属性“scales = 'free_x',space = 'free_x'”对我不起作用。
ggplot(dff2) + geom_point(aes(x = time,y = cnt),size = 0.05) +
labs(y = "Count Rate (cnt/s)",x = "Time (days - MJD 50000)") +
facet_grid(pcu_number ~ .,scales = "free") +
theme_light() +
ggtitle(data_name) +
theme(plot.title = element_text(hjust = 0.5)) +
ylim(0,median(cnt)*8) +
geom_hline(yintercept=median(cnt),linetype="dashed",color = "black",size=0.3) +
geom_hline(yintercept=median(cnt)*7,size=0.3)
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)