Skip to content

error bars on line plot with error bars using ggplot

7 messages · James Maas (MED), David Winsemius, S Ellison +3 more

#
On Oct 3, 2012, at 6:41 AM, James Maas (MED) wrote:

            
The usual way to do that in base graphics is with the arrows function using an angle of 90.
Hey, that's _our_ line. Solutions extended when reproducible example provided. See the standard footer.
#
Try googling 'error bars in ggplot'

I found a useful description at
http://wiki.stdout.org/rcookbook/Graphs/Plotting%20means%20and%20error%20bars%20%28ggplot2%29/

*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}
#
Hi,

It sounds to me like you want to change the location of the tick marks
rather than the axis range (which you've already done). For that see
?axis and its various options for placement and labeling and the yaxt
option under ?par to suppress the default axis labels.

Sarah
On Wed, Oct 3, 2012 at 1:50 PM, Yakamu Yakamu <iam_yakamu at yahoo.com> wrote:

  
    
#
On 03.10.2012 19:50, Yakamu Yakamu wrote:
Not reproducible for us ...
You set the range of the whole axis by ylim, if you want to control the 
tick marks, use:

ylim=c(0,15), yaxp=c(0, 15, 3)

and

ylim=c(0,5), yaxp=c(0, 5, 2)

respectively. See ?par for details.


Otherwise, omit the y axis via yaxt="n" and add it separately by a call 
to axis().

Uwe Ligges
16 days later