On Tue, 17 Sep 2013, Carabiniero wrote:
Hi All,
I need to construct a stacked bar plot with two independent (x) variables,
where the stacking is x1 and the x-axis label is x2. Can someone help out
with the code for this or provide a reference/example?
I'm not completely sure what exactly you
Hi All,
I need to construct a stacked bar plot with two independent (x) variables,
where the stacking is x1 and the x-axis label is x2. Can someone help out
with the code for this or provide a reference/example?
Thank you,
J
--
View this message in context:
http://r.789695.n4.nabble.com/S
Abraham Mathew thisorthat.com> writes:
>
> I'm trying to develop a stacked bar plot in R with ggplot2.
>
> My data:
>
> conv = c(10, 4.76, 17.14, 25, 26.47, 37.5, 20.83, 25.53, 32.5, 16.7, 27.33)
> click = c(20, 42, 35, 28, 34, 48, 48, 47, 40, 30, 30)
> date = c("July 7", "July 8", "July 9", "
I'm trying to develop a stacked bar plot in R with ggplot2.
My data:
conv = c(10, 4.76, 17.14, 25, 26.47, 37.5, 20.83, 25.53, 32.5, 16.7, 27.33)
click = c(20, 42, 35, 28, 34, 48, 48, 47, 40, 30, 30)
date = c("July 7", "July 8", "July 9", "July 10", "July 11", "July 12",
"July 13",
"July 14", "Jul
Thank you for the solutions!
I have the first one working and it does exactly what I am looking for.
Unfortunately I have to put the plot in a common figure alongside other
plots made in the basic environment (challenging!). With the second method,
I was unable to make the stacked bars locate to
On Jul 11, 2011, at 9:36 AM, marcel wrote:
> Hi All,
> New to R, but committed. I looked in a number of places but can't figure out
> my current problem. I have date of the type:
>
> Time Type1 Type2 Type3
> 1.50 .25 .25
> 4.55 .25 .20
> 5.65 .2
Marcel,
tC <- textConnection("
Time Type1 Type2 Type3
1.50 .25 .25
4.55 .25 .20
5.65 .20 .15
")
tmp <- read.table(header=TRUE, tC)
close.connection(tC)
require(lattice)
tmpdf <- data.frame(Time=rep(tmp$Time, 3), stack(tmp[,2:4]))
tmpdf
barc
Hi All,
New to R, but committed. I looked in a number of places but can't figure out
my current problem. I have date of the type:
Time Type1 Type2 Type3
1.50 .25 .25
4.55 .25 .20
5.65 .20 .15
etc
which describe the frequency of types 1, 2 an
--- On Wed, 3/23/11, Greg Snow wrote:
> From: Greg Snow
> Subject: Re: [R] stacked bar plot
> To: "Chandra Salgado Kent" ,
> "r-help@r-project.org"
> Also look at the ggplot2 package, it may do the summing as
> part of the plot call and probably doe
g
> Subject: [R] stacked bar plot
>
> Hello,
>
>
>
> I'm wondering if someone may be able to help me, and do apologize if
> there is a simple and obvious solution for this. I am somewhat new to
> R, and have been searching for a simple solution for a couple of day
Many thanks!! That's a million times easier!! :-)
All the best,
Chandra
From: istaz...@gmail.com on behalf of Ista Zahn
Sent: Wed 3/23/2011 12:06 PM
To: Chandra Salgado Kent
Cc: r-help@r-project.org
Subject: Re: [R] stacked bar plot
FWIW, the ggplot o
Sex")
> legend(10,60,c("Male","Female"),fill=c("lightblue","pink"))
> #
>
> Chandra
>
>
> __
c("Male","Female"),fill=c("lightblue","pink"))
#----------------
Chandra
From: Jim Lemon [mailto:j...@bitwrit.com.au]
Sent: Tue 3/22/
Hi Chandra,
You could use ggplot2:
library(ggplot2)
ggplot(dat, aes(Group_size, Number, fill=Sex)) +
geom_bar(stat="summary", fun.y="mean")
Best,
Ista
On Tue, Mar 22, 2011 at 7:30 AM, Chandra Salgado Kent
wrote:
> Hello,
>
>
>
> I'm wondering if someone may be able to help me, and do apologiz
On 03/22/2011 06:30 PM, Chandra Salgado Kent wrote:
Hello,
I'm wondering if someone may be able to help me, and do apologize if there is a
simple and obvious solution for this. I am somewhat new to R, and have been
searching for a simple solution for a couple of days.
I am interested in f
Hello,
I'm wondering if someone may be able to help me, and do apologize if there is a
simple and obvious solution for this. I am somewhat new to R, and have been
searching for a simple solution for a couple of days.
I am interested in finding a tool that allows me to plot a stacked bar p
tmp <- cbind(x=c(1,-.2,.3,.4),
y=c(.5,.6,-.7,.8))
row.names(tmp) <- letters[1:4]
barchart(tmp,
horizontal=FALSE,
stack=TRUE,
auto.key=list(
title="pollutant",
border=TRUE),
xlab="Month",
main="Interesting Plot")
barcha
On Nov 20, 2009, at 6:54 PM, Gary wrote:
Hi R Folks,
I need to plot a stacked bar plot with row labels as A,B,C,... and
each bar
divided by x,y, Here is the data:
x y
A 1 .5
B -.2 .6
C .3 -.7
D .4 .8
(for e.g. x,y,... could be air pollutants and A,B,C,... could be
months)
At the m
Hi R Folks,
I need to plot a stacked bar plot with row labels as A,B,C,... and each bar
divided by x,y, Here is the data:
x y
A 1 .5
B -.2 .6
C .3 -.7
D .4 .8
(for e.g. x,y,... could be air pollutants and A,B,C,... could be months)
Issue 1) It has negative values.
Issue 2) It contain two c
Hello all
Please ignore this last post as I now realize it is because the stacked
components are summed, as they should be. I needed the columns to be
stacked but not summed so just plotted the two series separately with add=T
Sorry...
Murray Richardson
Original Message
On 03/05/2008 3:29 PM, Murray Richardson wrote:
Hello users,
I've noticed a problem when creating a stacked column plot when a column
contains a negative and a positive value. e.g.
series1<-c(-1,-2, 3, 4, 5)
series2<-c( 5, -4,-3,-2, 1)
data<-rbind(series1,series2)
barplot(as.matrix(data), be
Hello users,
I've noticed a problem when creating a stacked column plot when a column
contains a negative and a positive value. e.g.
series1<-c(-1,-2, 3, 4, 5)
series2<-c( 5, -4,-3,-2, 1)
data<-rbind(series1,series2)
barplot(as.matrix(data), beside=FALSE)
In these cases (i.e. first, third a
22 matches
Mail list logo