search for: dodg

Displaying 20 results from an estimated 211 matches for "dodg".

Did you mean: dodgy
2010 Mar 12
1
simple plot in ggplot2, wrong error bars
...uot;)), coon = c(0.093, 0.06, 0.057, 0.09), group = factor(c("veget", "fruit", "veget", "fruit")), se = c(0.01, 0.01, 0.02, 0.026)) limits <- aes(ymax = coon + se, ymin=coon - se) p<-ggplot(df, aes(fill=group, y=coon, x=trt)) p+geom_bar(position="dodge",stat="identity") dodge <- position_dodge(width=0.9) > p + geom_bar(position="dodge") + geom_errorbar(limits, position="dodge", > width=0.5) as you noticed the code above gets the error bars in the wrong columns. So I used the code below (I replaced po...
2013 Feb 03
1
ggplot2 plotting errorbars.
Hi, i'm using this lines of code: dodge <-position_dodge(width=0.9) ggplot(dfm,aes(x = X,y = value)) + geom_bar(aes(fill = variable), position=dodge, stat="identity") + geom_errorbar(aes(ymin=value-er, ymax=value+er),width=0.25, position=dodge,stat="identity") to plot this data frame X va...
2012 Jul 02
5
ggplot: dodge positions
...tor(rep(rep(1:3, 10), 4))) ggplot(ddf, aes(x, y, colour=grp)) + geom_boxplot() + geom_point() Yet the position of the points and the position of the boxes on the x-axis is not the same. I would like that the points are shifted accordingly, such that they line up with the boxplots. I tried position_dodge: ggplot(ddf, aes(x, y, colour=grp)) + geom_boxplot() + geom_point(aes(ymax=max(y)), position = position_dodge(width=.75)) but that did not really help, as all points are now dodged and I just want to have a fixed offset for each subgroup of points such that the boxplot and the points are aligned...
2008 Oct 04
3
ggplot2: how to combine position=stack and position=dodge in a single graph?
Hi ggplot experts, I need to plot two time series of stacked data: a barchart with bars for each month. To compare the data of two years I need to combine both time series with in a single graph via position=doge. How should I do that? I tried the following scenario: I added two layers with the time series of the stacked data for both years. That worked well exept the bars are obscuring each
2011 Dec 21
3
black and white in qplot? layout 4 graphs in one screen
...e: num 0.333 0 1.333 0 1.667 ... Current code is: Ab.avg<-ddply(June, c("TRT", "habitat"), function(df) return(c(Ab.avg=mean(df$Abundance), Ab.sd=sd(df$Abundance)))) avg.plot<-qplot(TRT, Ab.avg, fill=factor(habitat), data=Ab.avg, geom="bar", position="dodge") dodge <- position_dodge(width=0.9) avg.plot++geom_linerange(aes(ymax=Ab.avg+Ab.sd, ymin=Ab.avg-Ab.sd), position=dodge)+theme_bw() http://r.789695.n4.nabble.com/file/n4223035/june_bar_graph.png Also, would like to plot 4 of these bar graphs (for four dates) on the same screen, I canno...
2010 Aug 04
2
ggplot2 barplot: extra markers in graph
Dear List, (self-contained example + version info at the bottom) I'm having trouble producing a barplot using the functions in ggplot2. When I use the position="dodge" option, the bars are plotted but also a number of spurious markers. More specifically, a number of black dots are plotted in the graph that should not be there. This behaviour is not seen when calling the same functions without the position="dodge". Can someone shed some light on...
2005 Jan 30
0
Re: Dovecot doesn't call pam_open_session, thus dodging
...ife a little easier for us rpm'ers) -- Chris L. Franklin -- ----- Original Message ----- From: "Chris L. Franklin" <cfranklin at nomadcf.com> To: <dovecot at dovecot.org> Sent: Sunday, January 30, 2005 1:49 PM Subject: RE: Dovecot doesn't call pam_open_session, thus dodging > This is great I've been wanting to get rid of my NFS mounts for some time and have just the user MailDirs be local to the web server. And this will help alot ! > > -- Chris L. Franklin -- > >> Message: 1 >> Date: Thu, 27 Jan 2005 16:08:28 -0700 >> From: Ni...
2013 Mar 06
6
Ggplot2: Moving legend, change fill and removal of space between plots when using grid.arrange() possible use of facet_grid?
...r1)))) SummAB p1 <- ggplot(SummAB, aes(factor3, mean, colour = factor1, group = factor1, shape = factor1)) + geom_point(aes(shape=factor(factor1)), color="black", fill="white", position = "dodge", width = 0.3, size=3) + geom_line(aes(linetype=factor1), color = "black", size = 0.5) + geom_errorbar(aes(ymin = mean - sdv , ymax = mean + sdv), width = 0.3, position = "dodge", color = "black", size=0.3) + theme_bw() + ylab(expressio...
2009 Feb 05
1
A way to "lock down" the order of bars for ggplot "dodged" histogram
It appears that ggplot reorder the data for a "dodged" histogram based on whether or not a specific variable has a value in the first bin.   I would like to be able to absolutely force the order of the variables in the bin.  For example, say I have three variables Me, You, and Them.   Me_df<-data.frame(Data = c(1:15), Person = "Me&quo...
2018 Jan 15
5
barplot that displays sums of values of 2 y colums grouped by different variables
...sum_data <- aggregate(. ~ City,data=raw_data,sum) this gave me the sums per city as I wanted but for some reason 1 of the cities is missing in the output. Using this code for the plot: ggplot(sum_data,aes(x = City,y = n)) + geom_bar(aes(fill = y),stat = "identity",position = "dodge") gave be a bar plot with one bar per city showing the sum of y as a color gradient. not what I expected given the "dodge" command in geom_bar. Thanks.
2005 Jan 30
0
RE: Dovecot doesn't call pam_open_session, thus dodging
...have just the user MailDirs be local to the web server. And this will help alot ! -- Chris L. Franklin -- > Message: 1 > Date: Thu, 27 Jan 2005 16:08:28 -0700 > From: Nicolas Lopez <nlopez at espri.arizona.edu> > Subject: [Dovecot] Dovecot doesn't call pam_open_session, thus dodging > pam_mkhomedir > To: dovecot at dovecot.org > Message-ID: <41F9746C.8080707 at espri.arizona.edu> > Content-Type: text/plain; charset="iso-8859-1" > > I hit a small snag using Dovecot-imapd smoothly in my environment > with maildir and most of my account...
2012 Mar 12
1
ggplot2: coord_polar
...: Linux (64bit) Any thoughts? Many Thanks, A. ## code segment starts here df <- data.frame( trt = factor(c(1, 1, 2, 2)), resp = c(1, 5, 3, 4), group = factor(c(1, 2, 1, 2)), se = c(0.1, 0.3, 0.3, 0.2) ) df2 <- df[c(1,3),] limits <- aes(ymax = resp + se, ymin=resp - se) dodge <- position_dodge(width=0.9) p <- ggplot(df2, aes(fill=group, y=resp, x=trt)) p <- p + geom_bar(position=dodge) # This is OK print(p) # This is OK print(p + coord_polar()) p <- p + geom_errorbar(limits, position=dodge, width=0.25) # This is OK print(p) # Error at the next stateme...
2007 Oct 14
1
ggplot2: ordering categorial data
...spam1 values spam1 and spam2 are on the same Y axis, both as line plots share is on a second Y axis, again as line plots the three lines should appear in different colours I first tried to do a bar plot with the following command: qplot(tld, spam, data=data_rb, geom="bar", position="dodge") + geom_bar(aes(y=data_rb$stockspam), position="dodge") But this seems to stack spam1 and spam2 values. When I try to do a lineplot, I get the following error message: > qplot(tld, spam, data=data_rb, geom="line") Error in unit(x0, default.units) : 'x' and ...
2005 Feb 02
0
Dovecot doesn't call pam_open_session, thus dodging pam_mkhomedir (fwd)
On Tue, 1 Feb 2005, it was written: > Nicolas Lopez wrote: > > maildir and most of my accounts in LDAP. Since the accounts are created > > through a web interface on another server home directories on the mail > > server don't get created automatically. There's the handy pam module > > pam_mkhomedir.so to automagically create home directories, but >
2018 Jan 15
0
barplot that displays sums of values of 2 y colums grouped by different variables
...>% group_by( city ) %>% summarise( n = sum( n ) , y = sum( y ) ) %>% gather( Response, value, -city ) ) ggplot( dta2, aes( x=city, y=value, fill = Response ) ) + geom_bar( stat="identity", position="dodge" ) #' ![](https://i.imgur.com/cosFf3B.png) #--- On Mon, 15 Jan 2018, kenneth dyson wrote: > I am trying to create a barplot displaying the sums of 2 columns of data > grouped by a variable. the data is set up like this: > > "city" "n" "y" <...
2010 Dec 06
2
ggplot2: Controlling line width of panel borders
...taset of the lattice package to illustrate my problem: library(ggplot2) library(lattice) barley[["SD"]] <- 5 limits <- aes(ymax=barley$yield + barley$SD,ymin=barley$yield - barley$SD) p1 <- ggplot(barley,aes(fill=year,y=yield,x=variety)) p2 <- p1 + geom_bar(position="dodge",stat="identity") dodge <- position_dodge(width=0.9) p3 <- p2 + geom_errorbar(limits,position=dodge,width=0.5,size=0.7) p4 <- p3 + facet_wrap(~site,ncol=2) p5 <- p4+theme_bw(base_size=16) p5 last_plot() + opts(panel.grid.minor=theme_blank()) # deletes the minor grid...
2010 Aug 11
2
help to polish plot in ggplot2
..., sd=10) grp4 <- rnorm(10, mean=12, sd=10) mydat <- data.frame(category,grp1,grp2,grp3,grp4) dat.m <- melt(mydat) p <- qplot(1,value, data=dat.m, geom="bar", xlab="",ylab="Percentage of eco change",stat="identity",fill=variable, position="dodge") p + coord_flip()+ facet_grid(category ~ ., space="free")+scale_x_discrete(breaks=c(2,4))+opts(strip.text.y = theme_text(hjust = 0)) Now the only modification I need from this plot is that I want the grid labels (text) on the left hand side with right justification and white back...
2005 Jan 27
1
Dovecot doesn't call pam_open_session, thus dodging pam_mkhomedir
I hit a small snag using Dovecot-imapd smoothly in my environment with maildir and most of my accounts in LDAP. Since the accounts are created through a web interface on another server home directories on the mail server don't get created automatically. There's the handy pam module pam_mkhomedir.so to automagically create home directories, but unfortunatly Dovecot wasn't calling
2008 Jun 16
1
ggplot2: How to remove legend component for geom_errorbar() ?
Dear list (probably Hadley), I'm trying to do a plot like the following, composed of bars and error bars: df <- data.frame(factor1=gl(2,5), factor2=gl(5,1), y=rnorm(10), err=0.1) ggplot(df, aes(x=factor1, y=y, fill=factor2)) + geom_bar(position="dodge", stat="identity") + geom_errorbar(aes(min=y-err, max=y+err), position="dodge", width=0.1) The plot obtained has a legend named "factor2", giving as expected the colours used for the five factor levels of factor2. So far so good. However, the legend also co...
2010 Apr 07
1
ggplot2, density barplot and geom_point layer
...y"]] <- as.numeric(myDiamonds[["clarity"]]) # Calculate medians medians <- ddply( myDiamonds, .(cut), summarize, med=median(clarity, na.rm=TRUE) ) # Works myPlot <- qplot( factor(clarity), data=myDiamonds, fill=cut, geom="bar", position="dodge" ) myPlot + geom_point( data=medians, aes(x=med,shape=cut), y=0, size=2.5, ) # Doesn't work - I want density rather than count myPlot <-qplot( factor(clarity), y=..count../sum(..count..), data=myDiamonds, fill=cut, geom="bar", position="dodge&quot...