Displaying 20 results from an estimated 3000 matches similar to: "Changing x-axis on boxplot"
2008 Sep 12
2
Again, about boxplot
Thank you for your guys reply for my previous question. But I got one more
question about the boxplot. With the code in the R-help:
boxplot(len ~ dose, data = ToothGrowth,
boxwex = 0.25, at = 1:3 - 0.2,
subset = supp == "VC", col = "yellow",
main = "Guinea Pigs' Tooth Growth",
xlab = "Vitamin C dose mg",
ylab =
2008 Feb 04
7
adding the mean and standard deviation to boxplots
Dear list,
How can I add the mean and standard deviation to each of the boxplots using the example provided in the boxplot function?
boxplot(len ~ dose, data = ToothGrowth,
boxwex = 0.25, at = 1:3 - 0.2,
subset = supp == "VC", col = "yellow",
main = "Guinea Pigs' Tooth Growth",
xlab = "Vitamin C dose mg",
2008 Sep 11
4
About "Plot.new"
Hi, sorry for bothering your guys.
I will trying to make some nice graph using boxplot. when I check the help
file of boxplot, there is a sample code as:
boxplot(len ~ dose, data = ToothGrowth, add = TRUE,
boxwex = 0.25, at = 1:3 + 0.2,
subset = supp == "OJ", col = "orange")
legend(2, 9, c("Ascorbic acid", "Orange juice"),
2007 Nov 21
1
Manipulating x axis in stripchart
Hi all,
I I need to manipulate the x axis in a stripchart.
I will use one of the data sets included in R to
explain what I need to do.
attach(ToothGrowth)
stripchart(len[supp=='VC']~dose[supp=='VC'],
vertical=TRUE, group.names=c('A','A','A'))
stripchart(len[supp=='OJ']~dose[supp=='OJ'], add=TRUE,
vertical=TRUE, at=c(1:3)+.1,
2001 Jul 25
2
pch with plot and legend
I'm trying to plot a scatterplot of two variables using pch to plot
different characters based on a third factor. Here is my example
> data("ToothGrowth")
> attach(ToothGrowth)
> levels(supp)
[1] "OJ" "VC"
> plot(len ~ dose,pch=as.numeric(supp))
> legend(locator(1),pch=as.numeric(supp),legend=levels(supp))
The command as.numeric(supp) returns 2 2
2006 Nov 17
2
s.e. on interaction plots
Is it possible to add standard error bars to the means on interaction plots?
Thanks
Murray
--
Murray Pung
Statistician, Datapharm Australia Pty Ltd
0404 273 283
[[alternative HTML version deleted]]
2009 Jan 11
1
boxplots: yaxp does not work
Hi,
I'd like to change the y-tickmarks of a boxplot.
But it doesn't work with yaxp (like I would do it in a plot-function).
Can someone help me out?
2011 Aug 15
2
Missing datasets (2.13.1)
Dear all
How does one resolve the variance between the actual availability of data
sets in the default implementation with those mentioned in the
documentation?
I am unable to attach some of the datasets, even though help() is available
for the same datasets. For example, "ToothGrowth" is a dataset that is
widely mentioned in the documentation as being part of the base install.
2010 Nov 20
10
An empty grey diagram
Hi folks,
Win7 64bit
R 1.12.0
I run following command on R:-
> ToothGrowth
> attach(ToothGrowth)
> plot(dose,len)
> matrics=lm(len~dose)
> abline(metrics)
Error in int_abline(a = a, b = b, h = h, v = v, untf = untf, ...) :
plot.new has not been called yet
Only a grey diagram is displayed without content
> plot(abline(metrics))
Error in int_abline(a = a, b = b, h = h, v
2011 Mar 25
2
error in bargraph.CI {sciplot}
Hi to all,
Does anybody knows why this is giving an error?
data(ToothGrowth)
# Two-way design with options
bargraph.CI(dose, len, group = supp, data = ToothGrowth,
xlab = "Dose", ylab = "Growth", cex.lab = 1.5, x.leg = 1,
col = "black", angle = 45, cex.names = 1.25,
density = c(0,20), legend = TRUE)
Error in dn.call[[1]] :
2007 Feb 22
2
question about boxplot
Here is a question from an old guy:
I want to use the boxplot function as follows:
boxplot( p.prop ~ R + bins )
This command makes nice boxplot for the factor "R" crossed with the factor "bins".
I am having alot of trouble getting control of the labels on the X axis. I want to control it more by specifying what the labels are, controling the 'size' of those
2005 May 25
3
Any ideas on how to add a dotted line to a box plot to indicate a specific value?
Basically, i want to create a boxplot from population data, with a solid
line for the median, and then a dotted line for a specific persons
value. Is there a way to artificially introduce another line or mark of
some kind in a box plot? Thanks again for all of yoru help. Hopefully
soon I wont have to keep bugging you all. ~Erithid :-p
2000 Dec 10
1
more boxplot questions
Hello,
I have a couple more questions about boxplots. In the books I've read on
statistics (I'm not a statistics expert but just a poor engineer trying
to help his wife with the analysis of the data she gathered for her
medieval history PhD), I seen two kinds of box plots: one using
quartiles to determine the height of the rectangles and whiskers which
is what the standard R boxplot does,
2005 Feb 02
4
(no subject)
can you recommend a good manual for R that starts with a data set and gives
demonstrations on what can be done using R? I downloadedR Langauage
definition and An introduction to R but haven't found them overly useful.
I'd really like to be able to follow some tutorials using a dataset or many
datasets. The datasets I have available on R are
Data sets in package 'datasets':
2007 Jun 13
1
Annotating trellis graphics
I'm using xyplot to generate a trellis plot with each panel containing a
scatterplot and a best fit line. Is it possible to write the slope of
the best fit line in each panel?
--
Alan S Barnett <asb at mail.nih.gov>
NIMH/CBDB
2010 Sep 03
1
change the type of lines and colours in interaction.plot
Dear all,
I want to plot 8 chemical variables in the same plot. I have used the interaction.plot command:
> interaction.plot(speclong$Date,speclong$time2,speclong$outcome,xaxt="n",type="l",pch=20,xlab="", log="y", ylab="Concentration (ug/L)",trace.label="",col=rainbow(8))
However, what it gives me is dotted lines and the colours are
2009 Mar 21
1
bargraph.CI change se for sd
Hi there,
I am a beginner.
I would like to change the error bars in the bargraph.CI function from the
default (se) to (sd). The help file says
ci.fun= function(x) c(fun(x)-se(x), fun(x)+se(x))
Is there a simple way of telling the function what (x) precisely is - I
already define in in the of the bargraph.CI function and assume that is
should be able to use that information.
cheers,
Herwig
--
2009 Nov 03
2
bargraph.ci - CI and color question.
Hello,
When using bargraph.CI in package sciplot can the bars for each group
be different colors? How do I select the color for each group?
When I use this instead of the default (SD vs SE):
bargraph.CI(x.factor = dose, response = len, data = ToothGrowth,
ci.fun= function(x) c(mean(x)-sd(x), mean(x) + sd(x)) )
Am I getting 95% CI bars?
Thank you kindly,
Michael Just
2011 Apr 19
5
Simple Missing cases Function
Dear all
I have written a function to perform a very simple but useful task which I
do regularly. It is designed to show how many values are missing from each
variable in a data.frame. In its current form it works but is slow because I
have used several loops to achieve this simple task.
Can anyone see a more efficient way to get the same results? Or is there
existing function which does
2011 Oct 26
1
Using abline in lattice
Dear all,
being a relative beginner in R, I apologize for posting the second question
within two days.
So I want a stacked barchart, which should look like the one produced by
this code:
Tuvalu <- c(9,3,4,0,3,0,0)
Singapor <- c(38,0,0,0,12,19,0)
Samoa <- c(26,16,2,0,5,2,0)
PNG <- c(56,4,0,5,2,0,56)
Micronesia <- c(6,0,0,0,0,0,0)
graph4 <-