Aloha all,

I love using ggplot.  It took a while to get used to the grammar of  
graphics, but it is starting to get easy now that I am thinking in a  
more structured way.

A question.  I'm making a wind rose that I'd like to be oriented with  
due north straight up.  I've discovered that the orientation is  
sensitive to how north is represented.  When north is represented as  
0, the orientation looks to be shifted just a bit counter-clockwise,  
perhaps 10 degrees.  When north is represented as 360, the plot is  
shifted clockwise, but past the point where north is straight up.  How  
to get north straight up?

I've read the book (very nice) and have skimmed through the  
documentation without finding what I need.  Any help much appreciated.

Here is the code from my Org-babel session:

#+begin_src R :session
   library(ggplot2)
   wind.data <- read.csv("pmrf_windrose_info_new.csv")
   wind <- ggplot(wind.data, aes(x = degree, y = time, fill = wind))
   wind.bar <- wind + geom_bar(stat = "identity")
   wind.bar + coord_polar()
#+end_src

All the best,
Tom

Thomas S. Dye, Ph.D.
T. S. Dye & Colleagues, Archaeologists, Inc.
Phone: (808) 529-0866 Fax: (808) 529-0884
http://www.tsdye.com



        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to