if (!require(ggplot2)) install.packages('ggplot2')
library(ggplot2)
....
ggplot(
data = somedata,
aes(x = mth, y = hours)
) +
xlab("Month") +
ylab("Hours") +
geom_line() +
geom_point() +
scale_x_date(
date_breaks = "1 month",
# date_labels="%b-%Y"
)
No comments:
Post a Comment