Hi Dimitri,
I am not sure I completely understand the issue but here is what I think you
want (using my variable names :) )
library(ggplot2)
dat1 <- data.frame(aa = sample(1:20, 100, replace = TRUE), bb = 1:100 )
p <- ggplot(dat1, aes(aa, bb)) + geom_point()
p <- p + geo
Never mind, I found the problem.
In my profile s was assigned to summary.
This is why it did not work.
On Thu, Nov 20, 2014 at 5:14 PM, Dimitri Liakhovitski
wrote:
> Dear R-ers,
>
> apologies for not providing the full code. I just need a point in the
> right direction.
> I have a data frame ('te
Hi Phil,
You don't need multiple data frames. A single one will do. Try that.
df <- rbind(df1, df2, df3, df4, df5, df6)
df$type <- c('a','a','b','b','c','c')
ggplot() +
geom_crossbar(data = df, aes(ymin=min, ymax=max, x=Treatment,
y=min, fill=type, fatten=0)) +
scale_fill_manual(values=c(a
People,
On 2014-04-06 22:31, Philip Rhoades wrote:
People,
OK, the last two bits of the puzzle - can I colour the bars
independently and change the scale from linear to logarithmic?
To answer my own question - the attached file works for me but I guess
could be improved?
Thanks,
Phil.
People,
OK, the last two bits of the puzzle - can I colour the bars
independently and change the scale from linear to logarithmic?
Thanks,
Phil.
On 2014-04-06 22:23, Philip Rhoades wrote:
Stephen,
On 2014-04-06 22:09, stephen sefick wrote:
add +coord_flip() at the end. Does that do it?
Stephen,
On 2014-04-06 22:09, stephen sefick wrote:
add +coord_flip() at the end. Does that do it?
Wow! - that was a fast response! - yes that works - thanks a lot!
Regards,
Phil.
On Sun, Apr 6, 2014 at 7:03 AM, Philip Rhoades
wrote:
People,
I have this script:
library(ggplot2)
d
add +coord_flip() at the end. Does that do it?
On Sun, Apr 6, 2014 at 7:03 AM, Philip Rhoades wrote:
> People,
>
> I have this script:
>
> library(ggplot2)
>
> df <- read.table(text = " id min max
> Sp1 8.5 13.2
> Sp2 11.7 14.5
> Sp3 14.7 17.7 ", header=TRUE)
>
> ggplot(df) +
> geom_crossba
On Dec 13, 2013, at 6:23 PM, David Winsemius wrote:
>
> On Dec 13, 2013, at 3:01 PM, Roe, Colleen wrote:
>
>> I have a plot I'd like to do wherein I plot to different y data sets and
>> want to have two different y axis's appear (perhaps one on right side and
>> one on left). I searched R h
On Dec 13, 2013, at 3:01 PM, Roe, Colleen wrote:
> I have a plot I'd like to do wherein I plot to different y data sets and want
> to have two different y axis's appear (perhaps one on right side and one on
> left). I searched R help with all the key phrases I could think of and I
> have thr
Thanks, upgrading the software did the trick.
-Original Message-
From: istaz...@gmail.com [mailto:istaz...@gmail.com] On Behalf Of Ista Zahn
Sent: Monday, July 25, 2011 3:50 PM
To: Steven Rytina, Prof.
Cc: r-help@r-project.org
Subject: Re: [R] ggplot question: changing the label for
binwidth=.29,main="test")+ylab("NEW")
>
> -Original Message-
> From: istaz...@gmail.com [mailto:istaz...@gmail.com] On Behalf Of Ista Zahn
> Sent: Monday, July 25, 2011 2:02 PM
> To: Steven Rytina, Prof.
> Cc: r-help@r-project.org
> Subject: Re: [R] ggplo
ight=cnts,data=qdata,binwidth=.29,main="test")+ylab("NEW")
-Original Message-
From: istaz...@gmail.com [mailto:istaz...@gmail.com] On Behalf Of Ista Zahn
Sent: Monday, July 25, 2011 2:02 PM
To: Steven Rytina, Prof.
Cc: r-help@r-project.org
Subject: Re: [R] ggplot questio
Hi Steven,
The basic example works:
qplot(rnorm(100)) + ylab("Bin Counts")
Please post a reproducible example that illustrates the problem you are having.
Best,
Ista
On Mon, Jul 25, 2011 at 1:40 PM, Steven Rytina, Prof.
wrote:
> Some help with how to re-label the vertical axis in a histogram
Have a look at the colour argument of geom_line()
http://had.co.nz/ggplot2/geom_line.html
You need colour = A_Factor_With_Names_Of_Timeseries
I recommend to you read the first chapters of Hadley's book on ggplot2
(it's on the ggplot2 website). That will answer much of your basic
ggplot2 questions
On Thu, Jul 24, 2008 at 2:23 AM, Williams Scott
<[EMAIL PROTECTED]> wrote:
> I am trying to do something simple with ggplot. I wish to draw a density
> plot split by group, and fill each group with a different colour (and
> each with an alpha =0.25). I have tried a number of variations of the
> fol
15 matches
Mail list logo