The Tufte books are beautiful and entertaining, but longer on general
philosophy and great examples than on detailed practical case studies or
"how to" information.
Another suggestion for learning would be to follow the various blogs
that comment on data visualization (Flowing Data, Junk Charts, Andrew
Gelman's blog ...) Such a link-farm would also seem appropriate for the
wiki.
> 32:191�241, 1981.
>
> William Cleveland. A model for studying display methods of statistical
> graphics. Journal of Computational and Graphical Statistics, 2:323�364,
> 1993b. URL http://stat.bell-labs.com/doc/93.4.ps.
>
> William Cleveland, editor. The Collected Works of John W. Tukey, Volume
> V: Graphics 1965�1985. Wadsworth & Brooks/Cole Advanced Books &
> Software, Monterey, CA, 1988.
>
> ------------------------------------------------------------------
>
> Asterisks indicate how many times I saw a particular references in the
> three sources I drew on.
>
> Thanks and tongue lashings for irrelevance willingly accepted,
>
>
> Josh
>
> P.S. I saw a new type of chart in Excel today. It takes the idea of a
> bar chart, but makes it 3d. If you're still not content, you can choose
> tapered cones instead of rectangles/cubes. These may also be stacked
> for a truly confusing experience.
>
>
>
> --
> Joshua Wiley
> Ph.D. Student, Health Psychology
> University of California, Los Angeles
> http://www.joshuawiley.com/
>
> --
> You received this message because you are subscribed to the ggplot2
> mailing list.
> Please provide a reproducible example: http://gist.github.com/270442
>
> To post: email ggp...@googlegroups.com
> To unsubscribe: email ggplot2+u...@googlegroups.com
> More options: http://groups.google.com/group/ggplot2
Looks good. I look forward to browsing through some of these that I
haven't checked out before.
Re "is this appropriate": It's a wiki, why not go for it? (Or, just
mark me down for +1)
The Tufte books are beautiful and entertaining, but longer on general
philosophy and great examples than on detailed practical case studies or
"how to" information.
Another suggestion for learning would be to follow the various blogs
that comment on data visualization (Flowing Data, Junk Charts, Andrew
Gelman's blog ...) Such a link-farm would also seem appropriate for the
wiki.
> 32:191–241, 1981.
>
> William Cleveland. A model for studying display methods of statistical
> graphics. Journal of Computational and Graphical Statistics, 2:323–364,
> 1993b. URL http://stat.bell-labs.com/doc/93.4.ps.
>
> William Cleveland, editor. The Collected Works of John W. Tukey, Volume
> V: Graphics 1965–1985. Wadsworth & Brooks/Cole Advanced Books &
I chose to use ggplot because I read it was very controllable but two
things are perplexing me:
I have a plot ( http://php5.chemo.org.uk/plot.png ) which I starting to
look like I want it to.
However, I'd like to improve a couple of things
1. The Y-axis - I have put a lot of text in there which I know is wrong.
So I'd either like to put the first line of each label in bigger font
(but can't see a way to do that) OR put a secondary y axis on the right
with the additional information in it. I also can't see that option either.
Here are a couple of options:
http://php5.chemo.org.uk/plot-1.png
http://php5.chemo.org.uk/plot-2.png
2. I gather ggplot doesn't understand what minor tick marks are.
(Honestly?) I've come up with a work around
# Set the breaks - I want a scale from 0 to 8, with ticks at 0.25 increments
blks = seq(0,8, by = 0.25)
tks = blks
# Set the tick labels. i only want ticks on whole numbers. So check if
number is whole if not set a blank label
tks = ifelse(tks==round(tks,0),format(tks,nsmall=1),"")
# Label the x axis and set the breaks
myPlot = myPlot + scale_x_continuous (
name = "Odds Ratio of Reaction",
breaks = blks,
formatter=scientific,
labels= tks)
That gives me this graph:
http://php5.chemo.org.uk/plot-3.png
Is there a better way to achieve this?
On Sep 27, 2010, at 08:50, goo...@wittongilbert.free-online.co.uk wrote:
> Hi this was going to be two questions so I probably should post them separately but I think I found a workaround for the tick marks so I decided just to check I hadn't missed something obvious!
>
> I chose to use ggplot because I read it was very controllable but two things are perplexing me:
>
> I have a plot ( http://php5.chemo.org.uk/plot.png ) which I starting to look like I want it to.
>
> However, I'd like to improve a couple of things
>
> 1. The Y-axis - I have put a lot of text in there which I know is wrong. So I'd either like to put the first line of each label in bigger font (but can't see a way to do that) OR put a secondary y axis on the right with the additional information in it. I also can't see that option either.
>
> Here are a couple of options:
>
> http://php5.chemo.org.uk/plot-1.png
> http://php5.chemo.org.uk/plot-2.png
You could add that text in the main graph area using geom_text, perhaps under the line?
> 2. I gather ggplot doesn't understand what minor tick marks are. (Honestly?) I've come up with a work around
>
> # Set the breaks - I want a scale from 0 to 8, with ticks at 0.25 increments
> blks = seq(0,8, by = 0.25)
> tks = blks
> # Set the tick labels. i only want ticks on whole numbers. So check if number is whole if not set a blank label
> tks = ifelse(tks==round(tks,0),format(tks,nsmall=1),"")
>
> # Label the x axis and set the breaks
> myPlot = myPlot + scale_x_continuous (
> name = "Odds Ratio of Reaction",
> breaks = blks,
> formatter=scientific,
> labels= tks)
>
> That gives me this graph:
> http://php5.chemo.org.uk/plot-3.png
Well, you won't get ticks but you could use scale_x_continuous(minor_breaks=seq(0,8,by=0.25)) to get the minor lines on the grid, but that doesn't get you ticks.
> Is there a better way to achieve this?
>