Re: [R] ggplot qplot bar removing bars when truncating scale

2010-07-03 Thread Hadley Wickham
This is possible in ggplot2, but it's an not appropriate use of a bar chart - because length is used to convey value, chopping the bottoms of the bars of will give a misleading impression of the data. Instead, use a dot plot: data$Q <- unlist(lapply(data$Q, function(x) paste(strwrap(x, 20), collap

Re: [R] ggplot qplot bar removing bars when truncating scale

2010-06-30 Thread Jonathan Christensen
Matthew, The ggplot documentation pages (http://had.co.nz/ggplot2) have the following to say under geom_bar: "A bar chart maps the height of the bar to a variable, and so the base of the bar must always been shown to produce a valid visual comparison." Thus, I suspect what you are trying to do m

[R] ggplot qplot bar removing bars when truncating scale

2010-06-30 Thread ml692787
I'm having problems with this example, it is posted with reproduceable code below, both with the normal 0-6 scale and the desired 3-6 scale (with bars removed). How can I get the graph to have the desired 3-6 scale without removing the bars. Thanks! #Data mean=as.numeric(c(5.117647059,5,4.9473684