Displaying 20 results from an estimated 2000 matches similar to: "question about boxplot"
2009 Apr 03
1
US county map question
Hi R-help:
I'm just an old guy and new to this list... But have been using R for
years now.
I want to make a map of counties in the US with shaded colors that
depend on the level of variable "Y" that I want to map.
I have the US county and state fips codes and the Y variable.
How do I do this?
Please reply to pzs6@cdc.gov
Thanks,
Phil Smith
pzs6@cdc.gov
[[alternative HTML
2007 Aug 23
1
state map question
Hi R-Help:
I want to produce a map of the US with different colors for selected
states.
I installed the map package, and then used:
library(maps)
I can see that by using
map( 'state' )
you get the state boundaries, also.
How do I fill in different colors for the different states? I see there
is a col parameter for map, but can't see how to get it to work!
Please reply
2007 Jul 03
1
Please help with legend command
Hi R-ers:
I'm drawing a plot and have used different line types (lty) for
different race/ethnicity groups. I want a legend that explains what line
types correspond to the different race/ethnicity groups. I used the
following code:
legend( 1992 , 42 , c("Hispanic" , "non-Hispanic white (NHW)" ,
"non-Hispanic black" , "AI/AN" , "Asian" ) ,
2009 Nov 02
3
question about difference in date objects
Hi R Community:
I want to take the difference in two dates:
dt2 - dt1.
But, I want the answer in months between those 2 dates.
Can you advise me?
Please respond to: pzs6 at cdc.gov
Thank you!
Phil Smith
Centers for Disease Control and Prevention
2006 Jun 20
1
Help with dimnames()
Hi R people:
I'm trying to set the dimnames of a data frame called "ests" and am
having trouble!
First, I check to see if "ests" is a data.frame...
> is.data.frame( ests )
[1] TRUE
... and it is a data frame!
Next, I try to assign dimnames to that data frame....
> dimnames( ests )[[ 1 ]] <- as.character( ests$stfips )
Error in
2006 Mar 10
2
difference between 2 dates: IN MONTHS the way Mothers compute it
Hi R-people:
I need a function to compute the number of months between 2 dates, in the same way a mother would do it.
For example, if a kid is born on February 6, the number of months between that date and March 7 is exactly 1 month, although it is only 29 days.
Thank you!
Phil Smith
CDC
[[alternative HTML version deleted]]
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 =
2010 Sep 26
2
Changing x-axis on boxplot
Dear List,
?
I am creating a boxplot with two subsets, very similar to the example by Roger
Bivand at ?boxplot (reproduced below).? I am trying to change the labels on the
x-axis to have one number to cover both subsets.? I can do this in other plots
by using axis=FALSE followed by a separate axis() command.? I have also tried
variations in the names= argument but can't get it to work.?
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,
2006 Mar 20
2
Special characters: plus/minus - a method that works
Dear R-people:
François Michonneau's method to obtain the special character plus/minus works on Windows 2000 professional.
Many Thanks to François for his work!
Phil Smith
Centers for Disease Control and Prevention
Atlanta, GA
_____
From: François MICHONNEAU [mailto:francois.michonneau@gmail.com]
Sent: Monday, March 20, 2006 1:58 PM
To: r-help@stat.math.ethz.ch; Smith, Phil
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",
2009 Jul 30
1
ask help about boxplot , different list variation into the tick of x-axis?
Hi ,everyone.
I want to draw a boxplot figure, main script shown as below. when I
run the command "boxplot(bjavee~yearname)",it is wrong with the error
information " model.frame.default(formula = bjavee ~ yearname) :
variation 'bjavee' list is wrong".
I want to add the yearname as the x-axis tick. And yearname is a array
with the length 12,while bjavee is a 5*12
2007 Apr 06
5
Labelling boxplot with fivenumber summary
I am very new to R so forgive me if this seems basic but I have done extensive searching and failed to come up with the answer for myself.
I am trying to label a boxplot I have created with the values for the median, upper and lower quartiles and max and min values. I have been unable to do this or find anything on the net to say how it might be done. Is this possible and if so how? Regards,
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 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 Apr 02
1
lineplot.CI in "sciplot": option "ci.fun" can't be changed?
hi List and Manuel,
I have encounter the following problem with the function "lineplot.CI".? I'm running R 2.10.1, sciplot 1.0-7 on Win XP.? It seems like it's a scoping issue, but I couldn't figure it out.
Thanks!
...Tao
> lineplot.CI(x.factor = dose, response = len, data = ToothGrowth)??? ## fine
> lineplot.CI(x.factor = dose, response = len, data = ToothGrowth,
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]] :
2010 Nov 27
1
How to add multiple ablines
Hi folks
Run;
> ToothGrowth
> attach(ToothGrowth)
> toothgrowth=lm(len~dose)
adding abline:
> abline(toothgrowth)
I got it done adding single abline.
How to add more ablines on the same diagram?
I found following thread, applying "mapply" command;
Plotting multiple ablines
http://www.mail-archive.com/r-help@r-project.org/msg51543.html
mapply(abline,
(converge$kY +
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,
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]]