Displaying 20 results from an estimated 1000 matches similar to: "stripchart-y axis labels"
2006 Feb 20
2
formatting results from a function argument
Hello all,
I have a simple function which calculates summary statistics of a dataset
in terms of a factor (say area).
> x = data.frame(Area = c(rep("cleanup", 5), rep("ref", 5)), TcCB =
c(rnorm(5)+2, rnorm(5)));x
Area TcCB
1 cleanup 2.5829747
2 cleanup 2.6796868
3 cleanup 2.5437094
4 cleanup 2.8453616
5 cleanup 1.1789683
6 ref 1.0140391
7
2006 Apr 10
1
Generic code for simulating from a distribution.
Hello all,
I have the code below to simulate samples of certain size from a
particular distribution (here,beta distribution) and compute some
statistics for the samples.
betasim2<-function(nsim,n,alpha,beta)
{
sim<-matrix(rbeta(nsim*n,alpha,beta),ncol=n)
xmean<-apply(sim,1,mean)
xvar<-apply(sim,1,var)
xmedian<-apply(sim,1,median)
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,
2009 Sep 23
1
stripchart with pch %in% 21:25 with bg
Dear all,
consider:
###
x <- round(rnorm(50))
stripchart(x, pch = 21, col = "black", bg = "pink", method = "jitter")
points(0.5, 1, pch = 21, col = "black", bg = "pink", cex = 2)
###
Under R 2.9.0 the points produced by stripchart are not colored,
while points() gives the desidered output (magnified here by cex).
I found a simple workaround
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
2008 Aug 07
1
stripchart ignores main title option (PR#12202)
Full_Name: James Curran
Version: 2.7.1
OS: Windows XP/Vista
Submission from: (NULL) (130.216.51.81)
stripchart ignores the main title option. For example, in the documentation
stripchart(decrease ~ treatment,
main = "stripchart(OrchardSprays)",
vertical = TRUE, log = "y", data = OrchardSprays)
does not yield a plot with
2012 Jun 13
2
Median line with stripchart
Dear all,
I would like to ask if it possible to draw a median line in a Stripchart,
either using the built-in STRIPCHART function or with another package.
I was expecting stripchart() to work more or less like boxplot(), but I
couldn't find an easy way to draw a mean or median line, neither I found
this option in other packages.
Could somebody help?
Best regards,
Luigi Marongiu, MSc
2004 Feb 29
1
stripchart and axes
Hi,
I'd like to remove the axes from a plot produced by stripchart(). However,
when trying stripchart(..., axes = FALSE), I get the error meassage
Error in stripchart(hypokvot1 ~ treatment, "jitter", pch = 1, vert = TRUE, :
unused argument(s) (axes ...)
using R 1.8.1 on Windows. Can it be done some other way? If not, maybe this
functionality can be added to a future version of
2003 Mar 30
1
Suggestion: add log argument to stripchart
Hello,
I frequently use stripchart to summarise data. Recently I wished to
plot a stripchart on a log scale, so modified stripchart locally. The
change is small, just adding log="" to the function call and
then changing line 42 of src/library/base/R/stripchart.R from:
plot(xlim, ylim, type="n", ann=FALSE, axes=FALSE)
to:
plot(xlim, ylim, type="n",
2009 Dec 01
1
Stripchart: way to get different colour for each group
Hi,
Is there a way to get different colour based on group when plotting stripchart?
mydata <- data.frame(val1 = c(1.1, 3.2, 4.1, 2.5, 6.2, 5.3, 4.5, 2.2,
4.7, 2.7), val2 = c(4.2, 5.3, 3.4, 2.6, 5.3, 6.2, 7.7, 4.8, 3.4, 2.1),
group = rep(0:1, 5))
mydata.stack <- stack(mydata, select=-group)
stripchart(values ~ ind,
data=mydata.stack,
vertical=T,
at=c(1.25,
2009 Mar 13
1
Overlay plot: boxplot and stripchart
Hi,
I have a data.frame of this kind:
x
obs movie earned rating
1 P1 3.2 xx
2 P1 4.2 xx
3 P1 5.2 xx
4 P1 6.2 xx
5 P2 3.5 xx
6 P2 6.5 xx
7 P2 7.5 xx
8 P2 4.5 xx
9 P2 4.5 xx
10 P3 4.8 x1
11 P4 7.3 x2
12 P4 3.2 x2
13 P4 3.3 x2
I want to overlay the
2008 Jan 22
1
stripchart
hi,
I want to plot a dotplot graph but unfortunately R does not have it any more. It suggest to use either the stripchart or the dotchart and i prefer to play around with the stripchart graph. Sadly, the result is not like i want where I'm actually wants the plots/points were scattered around the x-axis. Plus, from the results shows that and the x-axis gave a very large scale, i.e
2012 Jun 21
1
reversing the order of a y-axis in stripchart()
Hi,
I am trying to plot a graph using stripchart() - my x-axis is categorical
and my y-axis is numerical. I would like to reverse the order of my y-axis
(i.e. with 0 at the top left and increasing numbers moving downward towards
the bottom left corner). My data are subsetted into 3 categories that I've
plotted on 1 graph using stripchart(add=TRUE) option.
Thanks for any assistance,
Regards,
2008 Jun 21
1
Coloring Stripchart Points, or Better, Lattice Equivalent
Hi All.
I have the commands below to create a stripchart/plot. I was hoping to
color the points in the plot by yr, and use a symbol that varied with resp.
However, the outcome makes it appear as though the point by point col and
pch data is not being passed properly. Any suggestions?
And truthfully, I?d rather be doing this with Lattice, but I?ve tried
several variations of stripplot and can?t
2008 Oct 10
1
boxplot and stripchart
I want to make illustrations a la boxplot for a data material with
several groups. Some of the groups are very small, so a boxplot
doesn't make sense. I would like to use stripchart for these groups.
On the other hand, some of the groups are very large, so for them
stripchart isn't so good. So my question is: Is it possible to combine
boxplots and and stripcharts in one figure? (Of course,
2009 May 22
1
stripchart and ordering of plot
Take for example the following stripchart that's created:
b <- 1:5
a <- 11:15
e <- 21:25
f <- -11:-15
foo <- rbind(b,a,e,f)
stripchart(foo ~ rownames(foo))
In this case, I would like the bottom part of the plot to be the f vector,
followed by the e vector, etc.
However, R reorders the matrix and plots according to the alphabetical order
of the rownames of foo. Is there a
2003 Dec 08
3
stripchart problem
Hello,
I am trying to plot age distribution data for a certain condition that
runs in families. Below is a simplified view of the dataset, i.e. in
this case there are four families, each line corresponding to one
individual with age at diagnosis and sex.
> famdata
family age sex
1 fam1 2.1 f
2 fam1 2.3 f
3 fam1 1.0 m
4 fam2 7.3 f
5 fam2 4.1 f
6 fam2 1.2 f
7
2012 Nov 28
1
Stripchart colors don't vary after I sort a data frame
# Hi,
# This plot has two colors.
overflow <- read.csv('http://chainsaw.thomaslevine.com/overflow.csv',
stringsAsFactors = F)
png('original.png')
stripchart(overflow$precipi ~ overflow$after.9.am, method='stack', pch
= 22, bg = overflow$overflow + 1, vertical = T, col = 0)
dev.off()
# I wanted continuous bands of color, so I sorted the data frame.
# But after
2005 Sep 16
1
horizontal lines on stripchart
Hi.
I would like to add a horizontal line to each column of data on a
stripchart (vertical=T) to indicate the mean(rather like the package
Prism does - for those that have used this) for each dataset. I presume
the best way to do this would be with "lines" but after much trying /
playing about I can't figure it out. Can anyone help?
Thanks
2009 Jul 20
2
moving columns on a stripchart closer together
Greetings
I have a very simple question that I have not been able to solve by reading the manual. When I produce a stripchart with two straight columns of dots representing individual observations, one representing one group of subjects and the other representing another, the columns wind up at the far left and far right sides of the plot, and I'd like them to be closer together, about as far