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 ar
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 no
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 sequ
cted from a given body of
>data.
>~ John Tukey
>
>-Oorspronkelijk bericht-
>Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Namens Pedro de Barros
>Verzonden: zondag 23 maart 2008 13:02
>Aan: [EMAIL PROTECTED]
>Onderwerp: [R] ggplot2 - legend for fill coulours
>
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
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
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 slo
Hi Hadley,
Thanks. I did this already, indeed, but the issue is that then I get
a gTree object, not a ggplot object (I believe the option of building
all objects off-screen and then printing the plot in whichever device
we choose is the best option. That is indeed why I like your ggplot
concep
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 lege
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
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 <-
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
yourself, and then use scale_y_continuous 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
===
At 23:01 2007/12/11, you wrote:
>Hi Pedro,
>
>It seems to work 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.
>
&
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 th
d, is a delicate dissection of
>uncertainties, a surgery of suppositions. ~M.J.Moroney
>
>-----Oorspronkelijk bericht-
>Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Namens Pedro de Barros
>Verzonden: maandag 17 december 2007 23:55
>Aan: [EMAIL PROTECTED]
>Onderwerp: [R] ggp
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
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
_y_continuous()
p
========
I 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
>your R version!):
>
> > cut(1:5, 1:5)
>[1] (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)
>Levels: [1,2) [2,3) [3,4) [4,5)
>
>
>Uwe Ligges
>
>Pedro de Barros wrote:
>>Dear All,
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
https://st
Dear All,
I am trying to save a plot made with ggplot as pdf.
I just created the plot, then printed it to the default graphics
device (screen). I then tried to create a pdf file choosing (from the
menus) File-Save As-PDF file. However, I get an error as
Error: Invalid font type
In addition: Wa
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,
>&g
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'),
g
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 s
ntinuous(limits=c(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)
>
>H
26 matches
Mail list logo