similar to: Plotting means and confidence intervals by group factor using lattice graphics?

Displaying 20 results from an estimated 800 matches similar to: "Plotting means and confidence intervals by group factor using lattice graphics?"

2005 Apr 22
1
Help needed with lattice graph!
Dear R users, If I manage to sort out this graph, it is certainly a candidate for the new R graph gallery (http://addictedtor.free.fr/graphiques/displayGallery.php)! I created the following lattice graph: library(lattice) tmp <- expand.grid(geology = c("Sand","Clay","Silt","Rock"), species =
2011 Aug 22
1
lattice to ggplot2 conversion help
Hi, I am interested in ggplot2 and I found this lattice code very interesting (http://addictedtor.free.fr/graphiques/graphcode.php?graph=48). Code: library(lattice) lattice.options(default.theme = canonical.theme(color = FALSE)) tmp <- expand.grid(geology = c("Sand","Clay","Silt","Rock"), species = c("ArisDiff",
2002 Jun 24
1
barplot
Hi, a couple of simple graphics questions: 1. I have a little function that makes bar plots. Now I would like to limit the Y-axis outside this function (that means after calling the barplot() command) depending on the data to be plotted . Does anyone know how to do this ??? 2. When using barplot() and limiting the yAxis, R draws the bars below the x-axis. How can I avoid this problem ??
2009 Apr 24
1
font size relative to graphic
I am printing numbers onto horizontal bars in a bar plots, but I am finding it difficult to make the number always the right size. If there are more bars, the bars get narrower and the font is too big. I also find that if I change the size of the graph, the bars will get wider or narrower and the font stays about the same size. The result depends on whether I view the graph in X11 or in
2011 Nov 09
2
plot separate groups with plotmeans()
Hi, I often use plotmeans() from the gplots package to quickly visualize a pattern of change. I would like to be able to plot separate lines for different groups, but the function gives an error when a grouping variable is included in the formula argument. For instance, > require(gplots) > x <- data.frame(Score=rnorm(100), Time=rep(1:10, 10),
2009 Nov 06
2
Adjusting Yaxis (ylim) limits on a plotMeans(DV, IV1, IV2, error.bars="se")
Hello everyone, I have tried to look for this everywhere and so far have no luck. I have a plotMeans(DV, IV1, IV2, error.bars="se") graph that plots my data (DV-continuous, IVs are factors, IV1 - two levels, IV2-four levels). I am trying to increase a scale of my y-axis (to be consistent with my other graphs), but unfortunately nothing works with "plotMeans" function, which
2013 Feb 19
2
introducing jitter in overlapping graphs using ggplots (plotmeans). Also sciplot.
Hi, I want to plot means with standard deviations of Total Nitrogen (TN) across 4 stations (S1-S4) and over 3 years (2007-2009). I want this plot in one panel. I do not want medians (bwplot, boxplot). I have tried a few different packages and it seems that ggplots with plotmeans was the fastest (I am not extremely skilled in writing my own scripts). Unfortunately, there is no grouping
2009 Sep 18
1
Why don't formulas that work for lm() work for plotmeans?
I know that simple line plots showing a point representing the mean + an error bar are difficult in R, but I am clearly missing something. I simply want to show how a the mean and 95% CI of a chemical concentration (y) vary over space (x) under four temperature regimes (T; a categorical factor). plotmeans, in the gplots library, should allow for such a figure, right? After all, it invokes lm()
2012 Jul 24
1
Function for ddply
Hello, all. I'm new to R and just beginning to learn to write functions. I know I'm out of my depth posting here, and I'm sure my issue is mundane. But here goes. I'm analyzing the American National Election Study (nes), looking at mean values of a numeric dep_var (environ.therm) across values of a factor (partyid3). I use ddply from plyr and wtd.mean from Hmisc. The nes requires a
2010 Jul 05
3
Problemas para graficar barras de error y fechas en el eje-x (SOLUCIONADO)
Hola Carlos, afortunadamente, encontré una solución a mi problema (hasta ahora al menos me funciona, veremos si más adelante se me complica con alguna otra cosa) Llogré resolver el problema usando el parámetro "labels" de la función "axis()". Lo que hice es algo así: *datos <- read.table(....)* #en el archivo datos, tengo una columna con las fechas en formato julian hecha
2010 Jun 28
2
plotmeans
Hello, I am using library(gplots) to do something like data(state) x1 <- state.area/10000 x2 <- x1+round((rnorm(length(state.area),3,3))) plotmeans(x1 ~ state.region) Is it possible to plot x2 to x1 in the same graph, something like: linesmeans(x2 ~ state.region) Best wishes, Cheba [[alternative HTML version deleted]]
2008 Jul 11
2
Problems with Package Installation.
I am having difficulty installing packages. For example, here I have tried to install "gplots" but to no avail. I have tried multiple mirrors and different packages (errbar) but after installation I seem to be unable to access any of the commands or help pages. I am a little concerned about the 'lib' missing message but this has been present for previous successful package
2002 Dec 27
2
RSvgDevice & sapply(plotmeans)
Hi, anybody know why this not works for several plots ? When i set onefile=T the plots are stacked one about another , onefile=F only the first plot is shown in AllbusMeansPlots.svg. [h2 is a data.frame] ......hist and sapply works for several plots nice with RSvgDevice ! Maybe setting the title after apply is a problem, but until yet i didn't found a better solution ? library(RSvgDevice)
2006 Jan 16
1
gplots
Hi I am sure that this question has been asked before ... appologies in advance This - which comes out very nicely - better than the commercial stuff. plotmeans (cdpy~Dodefordpy, Data = Dataset, connect = False, minbar = 1, mean.labels = FALSE, col = "blue", barwidth = 1.5, barcol = "red", ci.label = FALSE, xlab="Onset", pch = 15, par(las =2)). Only one snag I
2002 Sep 23
3
New version of gregmisc package
Version 0.6.0 of the gregmisc package has just been released on CRAN. Description: =========== Package: gregmisc Description: Misc Functions written/maintained by Gregory R. Warnes Title: Greg's Miscellaneous Functions Version: 0.6.0 Date: 2002/09/23 Maintainer: Gregory R. Warnes <Gregory_R_Warnes at groton.pfizer.com> Author: Gregory R. Warnes. Includes code provided by Ben
2002 Sep 23
3
New version of gregmisc package
Version 0.6.0 of the gregmisc package has just been released on CRAN. Description: =========== Package: gregmisc Description: Misc Functions written/maintained by Gregory R. Warnes Title: Greg's Miscellaneous Functions Version: 0.6.0 Date: 2002/09/23 Maintainer: Gregory R. Warnes <Gregory_R_Warnes at groton.pfizer.com> Author: Gregory R. Warnes. Includes code provided by Ben
2008 Jun 10
1
plotMeans() is there a ylim argument? Please Help.
I can not seem to get a ylim argument into plotMeans() is there anyway to do this. thanks in advance Stephen -- Let's not spend our time and resources thinking about things that are so little or so large that all they really do for us is puff us up and make us feel like gods. We are mammals, and have not exhausted the annoying little problems of being mammals. -K. Mullis [[alternative
2008 Oct 24
1
How to embed residual dot plots of BHH2::anovaPlot(...) into plotMeans(...)?
Dear R fans, I am preparing a lecture discussing the paper of Wilkinson and APA Task Force on Statistical Inference (1999, American Psychologist, 54, 594-604.) I'd like to demo their Figure 3B (p. 602) with R. That is to add plotMeans(...) with dots of BHH2::dotPlot(...) . Is there any elegant script to do the job? Thanks --------------- LI, Xiaoxu
2003 Apr 16
2
barplot2
Hello, I get a nice looking barplot using the barplot2 function in the gregmisc package: body2 <- barplot2(hh3, beside = TRUE, col = c("mistyrose", "lightcyan"), .... cex.names = 1.0, plot.ci = TRUE, ci.l = cil, ci.u = ciu, plot.grid = TRUE) box() However, obviously I lose the collors when converting from ps to a pdf (outside of R)
2002 Oct 31
1
Re: gregmisc version 0.7.3 now available
Dear Greg, Thanks for the new release. The decomposition of the SSQ is just what I need! Regards, Martin. Martin Hoyle, School of Life and Environmental Sciences, University of Nottingham, University Park, Nottingham, NG7 2RD, UK Webpage: http://myprofile.cos.com/martinhoyle >>> gregory_r_warnes at groton.pfizer.com 10/30/02 07:16PM >>> Version 0.7.3 of the gregmisc package