Displaying 20 results from an estimated 42 matches for "insectspray".
Did you mean:
insectsprays
2011 Jun 24
2
text overlap in plot
Hey,
Here is a snippet that generated a boxplot and separates points so that
they do not overlap. I have a problem to avoir text overlapping. Any
help would be helpful.
>
attach(InsectSprays)
boxplot(count ~ spray, data = InsectSprays, outpch = NA)
stripchart(count ~ spray, data = InsectSprays,
vertical = TRUE, method = "jitter",
pch = 21, col = "maroon", bg = "bisque",
add = TRUE)
text(count ~ spray , row.names(Insect...
2007 Oct 15
4
boxplot() confuses x- and y-axes (PR#10345)
...to what is an x- or y-axis.
At least, xlim= and ylim= are the wrong way round, log="x" (or "y") and xaxt=
work as expected, I haven't looked at anything else.
Some code to see if you can reproduce the bug (or discover it's in my head...):
boxplot(count ~ spray, data = InsectSprays)
# Try to change x-axis:
boxplot(count ~ spray, data = InsectSprays, xlim=c(0,50))
# Plot horizontally:
boxplot(count ~ spray, data = InsectSprays, horizontal=TRUE)
# Now try to change x-axis:
boxplot(count ~ spray, data = InsectSprays, horizontal=TRUE, xlim=c(0,50))
# Changes y-axis!
# Now tr...
2008 Sep 23
1
plot error
HI there,
why these lines of code are correct
plot(count~spray, data = InsectSprays)
plot(InsectSprays$count)
but this return an error:
plot(count, data = InsectSprays);
"data" method is not implemented in plot?!
Thanx, Gianandrea
--
View this message in context: http://www.nabble.com/plot-error-tp19624873p19624873.html
Sent from the R help mailing list archive at Na...
2010 Aug 13
2
Dealing with data
# how would I code in R to look at the letter of the alphabet
# in the second column and create a indicator column for the
# corresponding letter?
data(InsectSprays)
InsectSprays$spray
2006 Apr 28
2
How to get a grid behind a boxplot
I am using R 2.2.1 on a Windows 2000 PC.
When I do a grid() after the boxplot
it overprints the boxplot:
> boxplot(count ~ spray, data = InsectSprays, col = "lightgray")
> grid(nx=NA, ny=NULL)
>
if I try the panel.first
> boxplot(count ~ spray, data = InsectSprays, col = "lightgray",
+ panel.first=grid(nx=NA, ny=NULL))
>
I can see the grid flash and go away.
If I close the device and then try the p...
2018 Feb 13
3
Suppress horizontal mean line in beanplot()
...;mean" or "median" .
I have tried overallline = F, overallline="n", and overallline="", but
without success.
Strangely, I could also not find any suggestions on the internet.
Does anybody know how to do this?
Thanks,
Samuel
## Example code using the dataset InsectSprays from datasets package
library(beanplot)
beanplot(count ~ spray, data = InsectSprays)
# How to remove the dashed horizonal line?
--
Samuel Knapp
Lehrstuhl f?r Pflanzenern?hrung
Technische Universit?t M?nchen
(Chair of Plant Nutrition
Technical University of Munich)
Emil-Ramann-Strasse 2
D-...
2008 May 22
2
Stripchart and Boxplots side-by-side
Dear all -
With the following code I get Boxplots and Stripcharts in one Plot:
with(InsectSprays, boxplot(count ~ spray, boxwex = 0.3))
with(InsectSprays, stripchart(count ~ spray, col = "red", vertical =
TRUE, add = TRUE))
But the dots from the stripchart are plotted over the Boxes.
Is there any possibility to have Stripchart and Boxplots side-by-side,
i.e. to move boxplots and/or...
2004 Apr 05
1
fligner.test (ctest) (PR#6739)
Full_Name: Karel Zvara
Version: 1.8.1
OS: MS Winows 2000
Submission from: (NULL) (195.113.30.163)
The test statistics of the fligner.test (ctest package) depends on the order of
cases:
> fligner.test(count~spray,data=InsectSprays)
Fligner-Killeen test for homogeneity of variances
data: count by spray
Fligner-Killeen:med chi-squared = 14.4828, df = 5, p-value =
0.01282
> fligner.test(count~spray,data=InsectSprays[order(InsectSprays$count),])
Fligner-Killeen test for homogeneity of variances
data:...
2006 Apr 27
3
ordered boxplots
Dear List-Members,
I would like to produce a ordered boxplot in which the categories with
the smallest median are plotted at the left end and the box with the
largest median at the right.
Thanks in advance for any advices
Thomas H.
2006 Mar 22
3
ordering boxplots according to median
Dear R-users,
Does anyone knows how I can order my serie of boxplots from lowest to
highest median (which is much better for visualization purposes).
thanks in advance,
willem
[[alternative HTML version deleted]]
2010 Aug 13
2
Learning ANOVA
Hi folks,
File to be used is on;
data(InsectSprays)
I can't figure out where to insert it on following command;
test01 <- read.csv(fil.choose(), header=TRUE)
Please help. TIA
B.R.
2011 Dec 09
3
Como marcar la media en un grafico boxplot ??
Estimados amigos, mi pregunta es bien directa, a ver si alguien me puede
ayudar:
Como marcar la media en un grafico boxplot ??
Por lo que veo, los boxplot en R marcan por defecto la mediana dentro de la
caja, pero necesito marcar la media y ojala sacar la mediana para que no
aparezcan los dos parametros.
Por lo que he leido, imagino que se puede hacer con alguna funcion de bajo
nivel, pero soy
2007 Jul 01
1
How to save results from chisq.test or mantelhaen.test to file
Hi,
I am new to these functions. I'm wondering if there is anyway to save the entire results (all attributes of the result object) from the chisq.test or mantelhaen.test functions? For example, from chisq.test function, you will have statistic, parameter, p.value, expected, etc. in the result list. How can I save all of them in one shot to, says, a text file or csv file? Thank you.
- adschai
2010 Nov 15
1
Converting numbers to percentages for boxplots
Hi,
I need to convert general numbers to percentages in R to create a boxplot for purposes of comparison.
Can you please tell me how I can do that? My data is attached as a csv file.
Thanks.
Daniel
2012 Jul 22
5
Reorder in decreasing order
reorder() is probably the best way to order the levels in a vector
without manually specifying the order. But reorder() orders by default
in an increasing order: "The levels are ordered such that the values
returned by ?FUN? are in increasing order."
Is there a way to do what reorder() does, but order the levels
according to a _decreasing_ order of the values?
Sverre
2000 Jul 18
5
X11 & dev2bitmap
Hi,
I am trying to put some graphics I have generated from R on a
webpage using dev2bitmap to create a bitmap, .BMP, file.
When I look at my notes from 2 or 3 months ago I was successfully able to
put the ACTIVE device plot result into a bitmap file using a command such
as:
dev2bitmap("InsectSpray.BMP")
Job done!
Now when I try the same command, I get the following:
> boxplot(InsectData)
> dev2bitmap("InsectSpray.BMP")
Error in device(...) : Object "width" not found
I looked-up what R means by 'device' and constructed this command:
> X11(d...
2001 Feb 13
3
xfig boxplot (polygon) bug??
There appears to be a bug in the R xfig() driver.
When I run a simple example, eg
> data(InsectSprays)
> boxplot(count ~ spray, data = InsectSprays, col = "lightgray")
the boxplot is fine. Doing the same thing after
> xfig(file='test.fig')
and then opening in Xfig (ver3.2 patchlevel 2) on my Linux box produces boxplots
where the boxes, although correctly shaded in, have...
2001 Feb 13
3
xfig boxplot (polygon) bug??
There appears to be a bug in the R xfig() driver.
When I run a simple example, eg
> data(InsectSprays)
> boxplot(count ~ spray, data = InsectSprays, col = "lightgray")
the boxplot is fine. Doing the same thing after
> xfig(file='test.fig')
and then opening in Xfig (ver3.2 patchlevel 2) on my Linux box produces boxplots
where the boxes, although correctly shaded in, have...
2000 Apr 29
4
S-Plus 2000 <-> R 1.0.1
Good day:
Let's say that I have a data frame in S-Plus 2000 (Win98 version).
I want to use the same data frame with R on another computer.
Questions:
1) Can R read S-Plus data frames? Can S-Plus 2000 read R data
frames?
2) How can i move the data frame between the two systems? Do I
need to use dump()?
Thank you.
2006 Jan 06
1
Ordering boxplot factors
Hi all,
what a great help list! I hope someone can help me with this puzzle...
I'm trying to find a simple way to do:
boxplot(obs~factor)
so that the factors are ordered left-to-right along the x-axis by
median, not alphabetically by factor name.
Complicated ways abound, but I'm hoping for a magical one-liner that'll
do the trick.
Any suggestions would be treasured.
Thanks,