Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
ylim-question
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Expand all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
july  
View profile  
 More options Jan 17 2011, 3:34 am
From: july <antje.niederl...@googlemail.com>
Date: Mon, 17 Jan 2011 00:34:05 -0800 (PST)
Local: Mon, Jan 17 2011 3:34 am
Subject: ylim-question
Hi there,

I've created a plot with the following commands:

p <- ggplot(plotData, aes(x = variable, y = value, colour = catVar,
group = catVar))
p <- p + stat_summary(fun.y = mean, geom = "line")
p <- p + stat_summary(fun.ymax = errorUpper, fun.ymin = errorLower,
geom = "errorbar", width=0.25)

Even if I print the plot without errorbars, the y-limit is too high.
It looks like it takes the raw data to calculate the y-limit instead
of the summarized data. Is it true? Is there any other solution beside
changing the viewport?
Or is there any mistake I'm not aware of?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brandon Hurr  
View profile  
 More options Jan 17 2011, 4:13 am
From: Brandon Hurr <brandon.h...@gmail.com>
Date: Mon, 17 Jan 2011 09:13:34 +0000
Local: Mon, Jan 17 2011 4:13 am
Subject: Re: ylim-question

You could set your limits manually using coord_cartesian.
http://had.co.nz/ggplot2/coord_cartesian.html

p + coord_cartesian(ylim = c(325, 500), wise=TRUE)

I'm not sure if it is taking into account the data range or the range of
what is being plotted though.

B


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
july  
View profile  
 More options Jan 18 2011, 4:17 am
From: july <antje.niederl...@googlemail.com>
Date: Tue, 18 Jan 2011 01:17:16 -0800 (PST)
Local: Tues, Jan 18 2011 4:17 am
Subject: Re: ylim-question
Okay, I was not yet aware of this option (I reached this chapter of
the book today :-)).
Anyhow, it's a bit annoying to group the data and calculate the ranges
of the summarized values by myself. This is exactly what ggplot tries
to avoid, no?

A

On Jan 17, 10:13 am, Brandon Hurr <brandon.h...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hadley Wickham  
View profile  
 More options Jan 18 2011, 10:35 am
From: Hadley Wickham <had...@rice.edu>
Date: Tue, 18 Jan 2011 09:35:09 -0600
Local: Tues, Jan 18 2011 10:35 am
Subject: Re: ylim-question
This should be fixed in the next version (hopefully)
Hadley

--
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »