Hi All,
I am watching a strange behaviour of ISOdatetime. In my work
computer, I get NA when I try to do
ISOdatetime(1995,03,26,2,0,0)
[1] NA
But on other dates and/or times (hour) works OK
ISOdatetime(1995,03,25,2,0,0)
[1] 1995-03-25 02:00:00 GMT
In my home computer, I do not have this
Dear All,
I have been trying to add lines to the axis grobs of plots produced
with ggplot2.
The code I have used is below. It works, although I do not think it
is a really elegant way of doing what I want
However, I am now noticing that when plotted, the width of the lines
in the axis
At 15:02 2008/07/06, you wrote:
On Sun, Jul 6, 2008 at 6:33 AM, Pedro de Barros [EMAIL PROTECTED] wrote:
Dear All,
I have been trying to add lines to the axis grobs of plots produced with
ggplot2.
The code I have used is below. It works, although I do not think it is a
really elegant way
Hi.
= means assignment (like a=2, may be used instead of a - 2, although
I prefer to always use -); It is also used to pass values to
arguments in named argument lists, or to set default argument values).
== is the boolean (logical) operator for testing whether two values are equal
e.g. a - 2
I just found out that this message got scrambled with other threads,
so I trying to re-send...
Dear R'ers,
I am trying to build a composite plot (with several plots in one
figure). I have tried, but I cannot use facetting, as I need to
customize each plot using grid.
Since all the plots are the
Dear R'ers,
I am trying to build a composite plot (with several plots in one
figure). I have tried, but I cannot use facetting, as I need to
customize each plot using grid.
Since all the plots are the same (with different data, but same
layout and categories), I would like to have only one
Dear All,
I am trying to print some simple ggplot plots, but I would like to
have no gridlines, and no border.
I have achieved this using ggopt(grid.lines='NA', border.lines='NA').
However, this also clears the axis lines, and reading the help, it
looks like the axis objects have only two
Hadley,
Thanks a lot!
BTW, do you have any document explaining the object philosophy of
ggplot? I was trying to see how you defined scale_fill_identity, but
could not find it...
Cheers,
Pedro
At 19:50 2008/04/01, hadley wickham wrote:
However, it looks this works only when the data are in
of anecdote is not data.
~ Roger Brinner
The combination of some data and an aching desire for an answer does not
ensure that a reasonable answer can be extracted from a given body of
data.
~ John Tukey
-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Namens Pedro de
Dear All,
After having overcome the issue of legends (thanks, Thierry, once
more), I am trying to use facetting, but here also I can not find how
to do this. I do not want to use qplot, but rather the more flexible
options. However, it seems I am doing still something pretty stupid,
because I
Dear All,
I am trying to build a stacked bar plot, where I define the colours to use.
I have asked this before, and I was using a solution in
http://thread.gmane.org/gmane.comp.lang.r.general/100649/focus=100673
(thanks, Thierry).
However, it looks this works only when the data are in the
Dear R's (most likely Hadley),
I want to build a stacked bar plot where I would like to define which
colours will be used for each of the groups. However, I do not seem
to find a way to do this, even if I've been looking over many places.
I have tried several variations, and my final try was
Dear All,
I continue trying to get several of my plotting functions to use
ggplot, because I really do like the concept of the graphical
objects, and working with them in the abstract.
I am now trying to access the grobs to manipulate using grid.
However, until now all I managed was to get the
for me:
qplot(mpg, wt, data=mtcars)
qplot(mpg, wt, data=mtcars) + scale_y_continuous(limit=c(4,5))
Maybe I don't understand what you're trying to do.
Hadley
On 12/11/07, Pedro de Barros [EMAIL PROTECTED] wrote:
Hi Hadley,
Well, the problem seems to be that ggplot is not recognizing
Dear All (probably Hadley),
I am now trying to customise some plots using a bar geom.
I do not want to use the default binning statistic, but rather
calculate the bar heigths separately. I do manage this, but for
comparison purposes I would like to have a set of plots all with the
same y-axis
as you have below.
(Also you can abbreviate the bar chart plotting command to:
qplot(x, y, data=plotdata, geom=bar, stat=identity))
Hadley
On 12/11/07, Pedro de Barros [EMAIL PROTECTED] wrote:
Dear All (probably Hadley),
I am now trying to customise some plots using a bar geom.
I do
(0,10), expand = c(0,0))
ggplot uses expand_range internally to ensure that you always have
some space between the data and the margins (and you should make sure
this happens in your plot too - otherwise it can be hard to see data
points on the sides)
Hadley
On 11/1/07, Pedro de Barros [EMAIL
Dear UserRs,
I am trying to use systematically ggplot2 for most of my plots, but I
am fighting some lack of documentation, which I try to overcome.
I want to build a scatterplot where the axes cross exactly at (0,0).
I tried using scale_y_continuous(limits=c(0,10)), but I always get an
extra
Dear All,
I am trying to build a simple ggplot, but where the scale is
reversed, i.e. the largest numbers are on the bottom.
An example of the code I am using is
plotdata-data.frame(x=1:10, y=runif(10))
plot-ggplot()
plot-plot+layer(data=plotdata, mapping=aes_string(x='x',y='y'),
Thanks!!!
Sorry for not having checked that - just did not remember...
Thanks again,
Pedro
At 12:59 2007/10/29, you wrote:
This has been reported several times already and has been fixed in
R-2.6.0 patched.
Uwe Ligges
Pedro de Barros wrote:
Dear All,
I am trying to save a plot made
version!):
cut(1:5, 1:5)
[1] NA (1,2] (2,3] (3,4] (4,5]
Levels: (1,2] (2,3] (3,4] (4,5]
cut(1:5, 1:5, right=FALSE)
[1] [1,2) [2,3) [3,4) [4,5) NA
Levels: [1,2) [2,3) [3,4) [4,5)
Uwe Ligges
Pedro de Barros wrote:
Dear All,
I am trying to use cut() to produce intervals open on the right
Dear All,
I am trying to use cut() to produce intervals open on the right, but
it seems to ignore the argument right=F, contrary to what is
indicated on the help for cut.
Can anyone help?
Thanks,
Pedro
__
R-help@r-project.org mailing list
wonder if anyone can help me with this.
Best,
Pedro de Barros
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self
23 matches
Mail list logo