Displaying 20 results from an estimated 700 matches similar to: "plotmeans"
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),
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()
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
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
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)
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
2010 Apr 01
3
reading excel into R
Dear all,
I am new R user and I am sure that this question has been asked quite often
and I have also googled it and read about it! I understood that in order to
read excel sheet into R you need to open it and saved it as csv or text, is
this true? or you can use read.delim2 and read.csv2 to do this without the
following error
> dat <- read.csv2(file="C:\\Dokumente und
2008 Feb 18
2
Custom Plot - means, SD & 5th-95th% (Plotmeans or Boxplot)?
Any help with this problem would be greatly appreciated:
I need to produce a custom plot i haven't come across in R. Basically, I
want to show means, 1st standard deviation and 5th and 95th percentiles
visually, using something resembling a boxplot. Is it possible to completely
customize a boxplot so that it shows means as the bar (instead of, not as
well as medians), standard deviations at
2010 Mar 17
3
save data to an R object
Dear R people,
Is it possible to save three data sets in an R object and to call each data
from this object independently!
Regards,
Cheba
[[alternative HTML version deleted]]
2010 May 14
0
Help with using plotmeans - how do I have two or more sets of data on one plot?
Hello
I'm having trouble being able to plot more than one set of data using the
plotmeans function. Plotmeans is where you can plot means and standard
errors easily.
Here is part of my code
plotmeans(Mmeans ~ Month, data=BW.hydat.05HG001, n.label=FALSE)#one set of
data
par(new=TRUE)
plotmeans(Mmeans ~ Month, data=Mouth.hydat.05HH001, col="red")#the second
set of data
Basically
2010 Aug 04
2
by group testing
Hello,
I have a data set which is similar to the following data
mice <- rep(letters[1:4],10)
outcome <- sample(c(0,1),length(mice),replace=T)
group <- c(rep("A",length(mice)/2),rep("B",length(mice)/2))
my.data <- data.frame(mice,outcome,group)
my.sort.data <- my.data[order(my.data[,1]),]
I would like to test wether there is a different between group A and B
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
2010 Apr 06
1
median of two groups
Dear all,
What is the right test to test whether the median of two groups are
statistically significant? Is it the wilcox.test, mood.test or the ks.test?
In the text book I have got there is explanation for the Wilcoxon (Mann
Whitney) test which tests ob the two variable are from the same population
and also ks.test!
Regards,
Cheba
[[alternative HTML version deleted]]
2010 Oct 30
1
two group cox model
Dear all,
I am doing
library(survival)
fit <- coxph(Surv(futime,fustat) ~ rx, ovarian)
plot(survfit(fit,newdata=ovarian),col=c(1,2))
legend("bottomleft", legend=c("rx = 0", "rx = 1"),
lty=c(1,2),col=c(1,2))
Is this correct to compare these two groups? Is the 0.31 the p-value that
the median f two groups are equal
Why lty does not work here?
Many thanks
2011 Apr 06
1
metaplot
Dear all,
I have a four variable: Stuy.Name, OR, 95%LCI and 95%UCI and I would like to
create a meta analysis plot. I can't use meta.MH function in metaplot
because I do not have
n.trt, n.ctrl, col.trt, col.ctrl are not available! Is there an alternative
way to do it?
Many thanks in advance,
Cheba
[[alternative HTML version deleted]]
2012 Mar 13
1
p-value of the pooled Z score
Hello,
I have to compute the pooled z-value and I would like to know which way is
more appropriate
b <- c( -0.205,1.040,0.087)
s <- c(0.449,0.167,0.241)
n <- c(310, 342, 348)
z <- b/s
Z <- sum(z)/sqrt(length(n))
P <- 2*(1-pnorm(abs(Z)))
P
w <- sqrt(n)
Zw <- sum(w * z)/sqrt(sum(w^2))
Pw <- 1 - pchisq(Zw * Zw, 1)
Pw
Many thanks in advance,
Cheba
[[alternative HTML
2006 Mar 06
0
font plotMeans
Hello,
I want to create a plot whit plotMeans.
How can I change the font?
Thanks in advance.
Teresa Boca
__________________________________________________
[[alternative HTML version deleted]]
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
2005 May 04
1
Plotting means and confidence intervals by group factor using lattice graphics?
Dear R graphics gurus,
Another question about lattice graphics. This time I would like to plot
means and confidence intervals by group factor in a lattice graph. I can
not find any working lattice examples. Maybe a custom panel function is
the answer, but that is a bit beyond me for now.
The individual plots within the lattice graph could look like this:
# Example with confidence intervals