[英]Is there any way to change the x-axis scale in line-graph in ggplot?
这就是它现在的样子。 这是一天中的几个小时,所以我希望它是每隔一个小时或每小时。 5 的比例并不能真正帮助视觉效果。
您可以使用scale_x_continuous沿 x 轴设置中断。 这是使用pressure数据集的示例。
scale_x_continuous
pressure
library(ggplot2) ggplot(pressure, aes(x = temperature, y = pressure)) + geom_line() + scale_x_continuous(breaks = seq(from = 0, to = 400, by = 50), limits = c(0, 400)) + theme_bw()
[英]x-axis scale in ggplot
[英]Add secondary x-axis to ggplot line graph, purely for information
[英]How to make a line graph in ggplot with discrete x-axis?
[英]Multiple X-axis values for a line graph in ggplot2
[英]How to change position of x-axis text in bar graph in ggplot?
[英]ggplot: x-axis in linear scale
[英]R: Altering the scale of the x-axis in ggplot
[英]ggplot scale x-axis in interplot
[英]Scale x-axis in ggplot2
[英]Facet line-graph using ggplot
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.