search for: geom_jitt

Displaying 20 results from an estimated 24 matches for "geom_jitt".

Did you mean: geom_jitter
2010 Nov 29
2
drop levels problem
...ot;,"fatPerc") ? # Year variable is a factor with three levels ?# Subset to plot only 'first' year firstyear <- subset(xmelt,year=='first');str(firstyear) #?Plot showing three levels still after I?made the subset ??ggplot(firstyear,aes(year,fatPerc)) + geom_boxplot() + geom_jitter() # Try to drop the levels but dropUnusedLevels() doesn't seem to work here ? dropUnusedLevels() ggplot(firstyear,aes(year,fatPerc)) + geom_boxplot() + geom_jitter() # code below also should drop levels but it doesn't #data.frame(lapply(firstyear, function(x) if (is.factor(x)){ factor(x...
2012 Oct 30
4
Error unary operator
Hi R - listers, I am receiving an error. Does anyone know what this means? J ggplot(subset(foo, Rayos != "Rayos.NA"), aes(x=HTL, y=DevelopIndex, colour=TotalEggs)) +geom_point() +geom_jitter() + facet_grid(Aeventexhumed ~ Rayos) + geom_smooth(method="lm", fill=NA) + ylim(c(0, 7)) Error in +geom_smooth(method = "lm", fill = NA) : invalid argument to unary operator [[alternative HTML version deleted]]
2010 May 31
0
Put two plots side by side
Two different ways: library(ggplot2) x=5 size=50 A=data.frame(X=sample(x, size, replace=T), Y=sample(x, size, replace=T),a=rep(1:2,each=25));A # Facetting qplot(X,Y,data=A) + geom_jitter(position=position_jitter(width=.03)) + facet_grid(.~a) # Or with vp p=qplot(X, Y, data=A) + geom_jitter(position=position_jitter(width=.03)) ggsave(p, file='main.png') p1=qplot(X, Y, data=A) + geom_jitter(position=position_jitter(width=.3)) ggsave(p1, file='main2.png') vport <-...
2007 Aug 08
1
Help using gPath
...ts.275, GRID.segments.276, geom_bar.rect.278, geom_bar.rect.280) boxplots.gTree.301:: geom_boxplot.gTree.291:: (GRID.segments.285, GRID.segments.286, geom_bar.rect.288, geom_bar.rect.290) geom_boxplot.gTree.299:: (GRID.segments.293, GRID.segments.294, geom_bar.rect.296, geom_bar.rect.298) geom_jitter.points.303 geom_jitter.points.305 guide.rect.357 guide.rect.358 ylabel.text.382 xlabel.text.380 title Could someone be so kind and create the proper call to grid.gedit() to access a couple of different aspects of this graph? I tried: grid.gedit(gPath("ylabel.text.382","la...
2008 Nov 19
2
ggplot2; dot plot, jitter, and error bars
...uot;High") mydata <- data.frame(x,xlab,y,lwr,upr) I would like to make a dot plot and use lwr and upr as error bars. Above 0=Low. I would like there to be some space between the 5 and the 6 corresponding to Low so I tried jittering: p <- ggplot(mydata, aes(x=x, y=y)) p+geom_point() p + geom_jitter(position=position_jitter(xjitter=2)) But I obtained this error: Error in get("new", env = PositionJitter, inherits = TRUE)(PositionJitter, : unused argument(s) (xjitter = 2) Any suggestions on how to plot this. I could create the separation in the x-axis (0,0.2,1,1.2,2,2.2). If so...
2009 Feb 26
1
ggplot2: labels points with different colors or idnumbers
Dear list,   Using ggplot2 I could produce both boxplot and points in the same plot but instead of points I would like to label the different subjects with different colors or their idnumbers. Is there away to do it? Also how can I put three plots on the same graph with ggplot2? mfrow=c(3,1) did not do the job.   > dat    group time   id  freq 1      1   00 0018  5.21 2      1   00 3026  3.13
2009 Mar 05
1
is there any option like cex.axis in ggplot2?
...nt to control for x- and yaxis. Using "plot" I can do it by setting cex.axis equally to any size but can't figure out how to do it with ggplot.     ggplot(dat, aes(x = factor(time), y = volume)) + opts(axis.title.x=theme_text(size=8),axis.title.y=theme_text(size=8)) + geom_boxplot() + geom_jitter(aes(colour = id))+labs(x = "time", y = volume)   Thanks for your help,   Tom     __________________________________________________________ Går det långsamt? Skaffa dig en snabbare bredbandsuppkoppling. Sök och jämför priser hos Kelkoo. http://www.kelkoo.se/c-100015813-bredband...
2007 Jul 09
0
Problem with Sweave and pdf version 1.4
...veOpts{echo = FALSE, pdf.version=1.4, eps = FALSE} \begin{document} \begin{figure} \centering <<tmp, fig = T, width = 5, height = 4>>= library(ggplot2) x <- runif(100) dataset <- data.frame(x = x, y = 5 * x + rnorm(100)) ggplot(dataset, aes(y = y, x = x)) + stat_smooth() + geom_jitter() @ \caption{Here comes a caption.} \label{fig:tmp} \end{figure} \begin{figure} \centering <<fig = F>>= pdf(file="foo.pdf", version="1.4") ggplot(dataset, aes(y = y, x = x)) + stat_smooth() + geom_jitter() dev.off() @ \incudegraphics{foo} \caption{Here co...
2011 Nov 16
1
boxplot strange behavior
Hello, I generate box plots from my data like this: qplot(x=xxx,y=column,data=data,geom="boxplot") + xlab("xxx") + ylab(ylabel) + theme_bw() + scale_y_log10() + geom_jitter(alpha=I(1/10)) The problem is that I see lot of points above the maximum at the same level as some outliers. It looks very weird as I expected the outliers to be "few" and specially not see any points other than the outliers below the minimum or above the maximum indicator. Can anyone...
2009 Mar 21
5
Plot and Boxplot in the same graph
Hii, Is it possible, to use the plot() funktion and the boxplot() funktion together ? I will plot a simple graph and additionally to the graph on certain places boxplots. I have imagined to plot the graph a little bit transparency and show in the same graph on certain places boxplots.... Is it possible to do it in this way ? greetings, johnh -- View this message in context:
2008 Oct 05
0
ggplot2 - version 0.7
...to control (almost) every aspect of the appearance of the plot. This system is documented in the book chapter "Polishing your plots for publication", available from http://had.co.nz/ggplot2/book/polishing.pdf. Bugs fixed * geom_boxplot: now displays outliers even if only one present * geom_jitter: setting one jitter direction to 0 now works * geom_segment: should now work correctly in all coordinate systems (note that arrows only work in Cartesian coordinates) * ggsave: correctly uses dpi for raster devices and default dpi changed to 72 (thanks to Brian Ripley for pointing this out) * ggs...
2008 Oct 05
0
ggplot2 - version 0.7
...to control (almost) every aspect of the appearance of the plot. This system is documented in the book chapter "Polishing your plots for publication", available from http://had.co.nz/ggplot2/book/polishing.pdf. Bugs fixed * geom_boxplot: now displays outliers even if only one present * geom_jitter: setting one jitter direction to 0 now works * geom_segment: should now work correctly in all coordinate systems (note that arrows only work in Cartesian coordinates) * ggsave: correctly uses dpi for raster devices and default dpi changed to 72 (thanks to Brian Ripley for pointing this out) * ggs...
2011 Jan 25
2
ggplot geom_boxplot and stat_smooth
...lrut", "stan", "vlakan"), class = "factor")), .Names = c("konc.f", "bel", "typ"), row.names = c(NA, -102L), class = "data.frame") > Here is what I did p<-ggplot(ad, aes(x=konc.f, y=bel, colour=typ)) p+geom_boxplot()+geom_jitter(position=position_jitter(w=0.1))+stat_smooth() geom_smooth: Only one unique x value each group.Maybe you want aes(group = 1)? I get nice picture with boxes but I expected to get something like smoothing line through box centres. Is it possible without some hack to stat_smooth code? Regards...
2009 Jun 10
1
ggplot, qplot: alpha channel for colors corresponding to factor
Hi, I have a qplot like the one in the minimal example below, except I also have faceting like this: qplot(jitter(Goodall),jitter(Better.adapt),colour=Second.adapt,facets=~Pol,data=d1) and with the real data I get quite a lot of overplotting, so I would like to add an alpha channel. In addition, I would like to be able to control which colors are used for each value of Second.adapt (which
2013 Jan 14
1
Tukey HSD plot with lines indicating (non-)significance
...Of course, for this, the levels need to be # reordered by group means, and it is only guaranteed to # work for balanced data. Example, with the lines missing: library(ggplot2) d=rice d$trt=reorder(d$trt, -d$ShootDryMass) ggplot(d, aes(x=trt, y=ShootDryMass)) + geom_boxplot(outlier.colour=NA) + geom_jitter(col="red", size=3, position=position_jitter(width=.1)) Is there such a function available in R? -- Karl Ove Hufthammer
2012 May 10
0
Fwd: Re: need help in R
...ot;GGemz") > Error in readChar(con, 5L, useBytes = TRUE) : cannot open the connection > In addition:Warning message: > In readChar(con, 5L, useBytes = TRUE) : > > i dont have a problem here > ggplot()+ > geom_tile(aes(x = lon, y = lat, fill = fill), data = GGemz)+ > geom_jitter(aes(x=lon,y=lat, color=fieldworker),data=emz)+ > scale_fill_identity()+ > scale_x_continuous('Longitude', limits = lon_range) + > scale_y_continuous('Latitude', limits = lat_range) + > scale_colour_discrete('') + > opts(title = 'Invitation map...
2017 Dec 08
0
Need help with labeling a plot correctly
...- ifelse(am(date), 1, 0), ? ?hour = 18, ? ?minute = 0, ? ?second = 0) } # Now we calculate the number of seconds since the start of the evening Ptepar$elapsed <- as.double(Ptepar$datetime - evening(Ptepar$datetime), "secs") ggplot(Ptepar, aes(Date, elapsed, colour = Location)) + ?geom_jitter() + ?facet_wrap(~ Species) The resulting plot appears fine however I need to have the Y axis display time of night rather than the elapsed seconds.
2008 Dec 14
0
New version of ggplot2, 0.8.1
...tead of intercept * legend.position and legend.justification work again * position_dodge now works for any number of elements with smaller widths, not just 2! * scale_discrete_position: does a better job of calculating axis limits when plotting a mixture of continuous and discrete values (e.g. with geom_jitter) * summary: tweaks to improve output -- http://had.co.nz/ _______________________________________________ R-packages mailing list R-packages at r-project.org https://stat.ethz.ch/mailman/listinfo/r-packages
2008 Dec 14
0
New version of ggplot2, 0.8.1
...tead of intercept * legend.position and legend.justification work again * position_dodge now works for any number of elements with smaller widths, not just 2! * scale_discrete_position: does a better job of calculating axis limits when plotting a mixture of continuous and discrete values (e.g. with geom_jitter) * summary: tweaks to improve output -- http://had.co.nz/ _______________________________________________ R-packages mailing list R-packages at r-project.org https://stat.ethz.ch/mailman/listinfo/r-packages
2008 Jan 11
0
New version of ggplot2: 0.5.7
...apped aesthetics * use LazyLoad: false instead of SaveData: true for better future compatability * coord_cartesian: fixed bug that prevented you from overriding the default axis expansion * coord_equal: now scales correctly if ratio < 1 * geom_abline: fix bug where slope was ignored * geom_jitter now works correctly with groups and categorical values (was actually a bug in how scale_discrete deals with continuous values) * geom_path: automatically switch between polylineGrob and segmentsGrob when drawing paths so that setting line type now works properly * geom_segment now uses both e...