Re: [R] ggplot2 rose diagram

2010-03-10 Thread Tim Howard
Got it. Thanks again so much for the help. Best, Tim >>> hadley wickham 3/10/2010 2:46 PM >>> > By Q2 I was trying to refer to the Y-axis labels. For the polar plot, the > Y-axis labels reside left of the panel. I was looking for a way to get the > Y-axis labels to radiate out from the cente

Re: [R] ggplot2 rose diagram

2010-03-10 Thread hadley wickham
> By Q2 I was trying to refer to the Y-axis labels. For the polar plot, the > Y-axis labels reside left of the panel. I was looking for a way to get the > Y-axis labels to radiate out from the center so it would be clear which line > each label refers to. I still can't find any reference to movi

Re: [R] ggplot2 rose diagram

2010-03-10 Thread Tim Howard
Hadley, Thanks for chiming in. By Q2 I was trying to refer to the Y-axis labels. For the polar plot, the Y-axis labels reside left of the panel. I was looking for a way to get the Y-axis labels to radiate out from the center so it would be clear which line each label refers to. I still can't

Re: [R] ggplot2 rose diagram

2010-03-10 Thread hadley wickham
For Q2 you can use opts(legend.position = c(0.9, 0.9)). For Q3, you can also use scale_y_sqrt(). Hadley On Wed, Mar 10, 2010 at 2:05 PM, Tim Howard wrote: > To answer two of my own questions to get them into the archives (I am slowly > getting the hang of ggplot): > > Q1.  use "opts(axis.text.

Re: [R] ggplot2 rose diagram

2010-03-10 Thread Tim Howard
To answer two of my own questions to get them into the archives (I am slowly getting the hang of ggplot): Q1. use "opts(axis.text.x = theme_text(size=xx))" to change font size of the bar labels: library(ggplot2) set.seed(5) dat <- sample(1:8,100,replace=TRUE) smp <- ggplot(data.frame(dat), aes

[R] ggplot2 rose diagram

2010-03-09 Thread Tim Howard
Dear R gurus - consider this plot: library(ggplot2) dat <- sample(1:8,100,replace=TRUE) smp <- ggplot(data.frame(dat), aes(x=factor(dat),fill=factor(dat))) + geom_bar(width=1) smp + coord_polar() Q1. How do I change the font size and weight of bar labels (1,2,3...)? I've been wallowing in