for the first question try ?grid
as in:
> barplot(1:10) > grid(nx = NA, ny = NULL, col = "red")
nx = NA sets no lines on x-axis. ny = NULL draws lines from all tick marks on the y-axis.
HTH
Gav
Paul Sorenson wrote:
Thanks to those who pointed me at the solutions to the legend overprinting the bars. I took the "easy" way of rescaling the y axis, picking the scaling factor for stacked bars is somewhat problematic but sufficient for my application.
I have another couple of barplot questions:
- Can I extend the major ticks on the Y axis across the page? Or both axes to form a grid?
- A really neat graph for me would be a combination of side-by-side and stacked bars in a single plot to display an additional category.
The background on the second problem is that I am displaying software defect metrics. For each month (the bins) the categories of interest are: - new/fixed/closed - numeric severity (1 - 5)
I am currently displaying 5 separate graphs (6 when you take the aggregate into account) with new/fixed/closed side-by-side. If within the side-by-side graphs I could show the severity stacked that would be very neat.
Cheers
______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
-- %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% Gavin Simpson [T] +44 (0)20 7679 5522 ENSIS Research Fellow [F] +44 (0)20 7679 7565 ENSIS Ltd. & ECRC [E] [EMAIL PROTECTED] UCL Department of Geography [W] http://www.ucl.ac.uk/~ucfagls/cv/ 26 Bedford Way [W] http://www.ucl.ac.uk/~ucfagls/ London. WC1H 0AP. %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
