> ggplot(plot) + aes(x=plot$Months, y=plot$`NO₂ (ppb)`)+ geom_line() > ggplot(plot) + aes(x=plot$Months, y=plot$`NO₂ (ppb)`)+ geom_line() + scale_x_date(breaks = date_breaks("months"), labels = date_format("%b"))
Hello Money,
would you like to change the column names from the xls to
A,B,C,D... for less problems
then save the file to a tab delimited csv file
then read the csv file like
logDirectory<-"dirPathOfFile"
plot <- read.table(paste(logDirectory, "my.csv", sep = ""))
and retry as
ggplot(plot, aes(x=A, y=B)) + geom_line()
--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility
To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+u...@googlegroups.com
More options: http://groups.google.com/group/ggplot2
---
You received this message because you are subscribed to the Google Groups "ggplot2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hello Money
Check out Cookbook for R.
Best regards,
James
From: ggp...@googlegroups.com [mailto:ggplot2@googlegroups.com] On Behalf Of Money Guillaume Ossohou
Sent: Tuesday, March 14, 2017 6:06 PM
To: ggplot2 <ggp...@googlegroups.com>
Subject: Plotting months on the x-axis
Dear all,
I'm a beginner in ggplot and I want to plot the attached file. I did this but nothing:
> ggplot(plot) + aes(x=plot$Months, y=plot$`NO₂ (ppb)`)+ geom_line()> ggplot(plot) + aes(x=plot$Months, y=plot$`NO₂ (ppb)`)+ geom_line() + scale_x_date(breaks = date_breaks("months"), labels = date_format("%b"))
--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility
To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+unsubscribe@googlegroups.com
More options: http://groups.google.com/group/ggplot2
---
You received this message because you are subscribed to the Google Groups "ggplot2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+unsubscribe@googlegroups.com.