Hi Emily,
Try replacing
date_labels = "..."
with
labels = date_format("...", tz = "...").
This assumes you are using the scales package. So the result should be:
ggplot(data=d, aes(x=TIMEOFDAY, y=USAGE)) +
geom_line(aes(group=DATE)) +
xlab("Time of Day") +
ylab("Demand (kW)") +
scale_x_datetime(
labels = date_format("%H:%M %Z",
tz = "PST"),
date_breaks="2 hours"
)
Does this work for you?
Sherif
--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/ReproducibilityTo 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.