on how to frame questions to the list.
BTW, did Don McQueen's response help?
Welcome to R .
John Kane Kingston ON Canada
-Original Message-
From: jsch...@zoology.up.ac.za
Sent: Mon, 24 Nov 2014 11:08:39 +0200
To: r-help@r-project.org
Subject: [R] DOT PLOT help!!
Morning everyone
Morning everyone
I am relatively new to R and although there are tons of how to websites,
some are just way over my head. I am currently trying to figure out how to
create dot plot graphs with my data, where I have categories (i.e male
/female) and values for each. I would like to display this
Juan (and probably many others):
If you are unwilling or unable to learn R by doing some minimal work
on your own, then I think you ought to look for other statistical/data
analysis software; or, alternatively, use R from one of several GUI
interfaces that are available: R Commander,
This example (five groups instead of your two) may be close to what you
are looking for:
plot( rep(1:5, 20), rnorm(100))
Hopefully the ³trick² is self-evident.
(R-help doesn¹t pass on most attachments, so I can¹t look at your example)
To improve the labels I would do something like this:
Some of the web sites are likely always going to be over your head. The
correct strategy is to find some that are within reach, and work your way
through them. If you cannot copy some example code into R and execute it from
one of the sites that comes up when you search for R dotplot (e.g. [1])
Turns out that
stripchart()
is the easiest way to get what I believe the OP is looking for.
Here is some example data
tmp - data.frame( g=sample(c('M','F'), 25, replace=TRUE),
val = runif(25, 1, 10))
Then:
stripchart(val ~ g, data=tmp, vertical=TRUE)
or with some
Hi,
I'd like to use R to produce the following plot:
dotplot.jpeg http://r.789695.n4.nabble.com/file/n4672628/dotplot.jpeg
This was constructed using StatKey at:
http://www.lock5stat.com/statkey/bootstrap_1_quant/bootstrap_1_quant.html
On 07/30/2013 04:21 PM, David Arnold wrote:
Hi,
I'd like to use R to produce the following plot:
dotplot.jpeghttp://r.789695.n4.nabble.com/file/n4672628/dotplot.jpeg
This was constructed using StatKey at:
http://www.lock5stat.com/statkey/bootstrap_1_quant/bootstrap_1_quant.html
I'd like to use R to produce the following plot:
dotplot.jpeg
http://r.789695.n4.nabble.com/file/n4672628/dotplot.jpeg
x-rnorm(500)
xr - round(x, 1)
stripchart(xr, method=stack, pch=19)
will do this if the data are rounded appropriately. You may have some fun with
'appropriately'.
geom_dotplot() in the ggplot2 package perhaps?
ggplot(mtcars, aes(x = mpg)) + geom_dotplot()
John Kane
Kingston ON Canada
-Original Message-
From: dwarnol...@suddenlink.net
Sent: Mon, 29 Jul 2013 23:21:26 -0700 (PDT)
To: r-help@r-project.org
Subject: [R] Dot plot similar to StatKey
I said:
stripchart(xr, method=stack, pch=19)
will do this if the data are rounded appropriately. You may
have some fun with 'appropriately'.
A bit of tinkering gives something that gets close to 'appropriate' (below);
you may want to tinker with the tuning factor (or, of course, write
I would use panel.dotplot.tb from the HH package.
It is based on lattice, hence will plot multiple groups on the same scale.
continuing with S Ellison's example
## install.packages(HH) ## if necessary
library(HH)
rpx - round.pch(x)
dotplot( ~ rpx, panel=panel.dotplot.tb, ylim=c(.98, 1.15))
Dear List,
I have a set of data which looks like this (small set of sample)
A A 0.431
A A 0.439
A A 0.507
A G 0.508
A A 0.514
I will like to use this data to plot a dot plot, with the X-axis being of type
character, and my y axis of type numeric.
When I try to use the dot
As an example:
chars-c(A,A,B)
numbers-as.numeric(as.factor(chars)) #make this numerical
plot(numbers,c(0.4,0.5,0.6),xaxt=n) #xaxt=n says to not plot the x-axis
axis(side=1,at=numbers,labels=chars) #make the axis with labels
On 23.01.2013, at 10:16, Ng Wee Kiat Jeremy wrote:
Dear List,
I
I think you need to become more familiar with the factor data type. Reread
the Introduction to R document that comes with R.
---
Jeff NewmillerThe . . Go Live...
Dear R'ers,
I was not able to change the font size of axis label using cex. Tried R
archive solutions, though not solved yet.
My code is:
print(dotplot(ss ~ Response | bb*sr*tr, pp, pch = 21,
strip = FALSE, strip.left = TRUE,layout = c(3,8),
scales = list(y =
Hi
see par.setting in ?xyplot
or
trellis.par.get() # beware it is verbose
or for starters
names(trellis.par.get() )
eg
par.settings = list(axis.text = list(cex = 0.75),
par.xlab.text = list(cex = 0.85),
par.ylab.text = list(cex = 0.85)),
Duncan Mackay
Department of Agronomy and Soil
Dear R help(ers). I'm an R-learner (about 10 hours now) trying to make a
ranked dot plot where the symbols are coded by two variables concurrently.
I'm trying to use Deepanyan Sarkar's book 'Lattice' as a guide but get the
feeling it is a bit advanced for my level of understanding.
I have
Q1.
Right now I like to know how to get the dual coding working on the points on
a dotplot and also annotate these in a key. Specifically I'm attempting to
code the fill of the points by a variable called 'Commodity' but would like
have different symbols to refelect a second variable called
On Mon, Oct 11, 2010 at 12:55 PM, casperyc caspe...@hotmail.co.uk wrote:
And now I just wonder why the ' bty='n' ' won't work?
I did
dotplot(BATCH~RESPONSE,data=d,subset=Type=='SHORT',bty='n')
and tried other bty parameters, none is working
As David says, par settings don't work in
Thanks.
It was 'bty=n' on a text graph, I was just having fun with it.
It does not really matter that much.
CasperYC
--
View this message in context:
http://r.789695.n4.nabble.com/dot-plot-by-group-tp2990469p3004323.html
Sent from the R help mailing list archive at Nabble.com.
Hi all,
I have the folloing data table
%%
TypeBATCH RESPONSE
SHORT A 22
SHORT A 3
SHORT A 16
SHORT A 14
SHORT A 8
SHORT A 27
SHORT A 11
SHORT A 17
SHORT B 12
SHORT B 17
SHORT B 11
SHORT
Casper -
I think you want
dotplot(BATCH~RESPONSE,data=d,subset=Type=='SHORT')
or
dotplot(BATCH~RESPONSE,data=subset(d,Type=='SHORT'))
- Phil Spector
Statistical Computing Facility
Hi Spector,
Yes, that is exactly what I was aiming for.
Thanks.
Casper
--
View this message in context:
http://r.789695.n4.nabble.com/dot-plot-by-group-tp2990469p2990495.html
Sent from the R help mailing list archive at Nabble.com.
__
And now I just wonder why the ' bty='n' ' won't work?
I did
dotplot(BATCH~RESPONSE,data=d,subset=Type=='SHORT',bty='n')
and tried other bty parameters, none is working
Casper
--
View this message in context:
http://r.789695.n4.nabble.com/dot-plot-by-group-tp2990469p2990500.html
Sent from
On Oct 11, 2010, at 3:55 PM, casperyc wrote:
And now I just wonder why the ' bty='n' ' won't work?
Left open is the answer to the question ... work ... how?
Because dotplot is a lattice function?
... and bty is a base graphic parameter?
You could try to give par.settings a list that
On Wed, Jul 14, 2010 at 10:12 AM, Neil123 neil.wh...@plants.ox.ac.uk wrote:
Hi,
I have the following dataset and I would like to create a dotplot with
confidence limits:
CAT1 CAT2 MEAN Lower
Upper
1 1 1
Hi,
I have the following dataset and I would like to create a dotplot with
confidence limits:
CAT1 CAT2 MEAN Lower
Upper
1 1 10.619 0.392
0.845
2 1
Dear all,
I'm trying to create a dot plot with error bands with
Dotplot(labels ~ Cbind(estimate, lower, upper), data=For.plot)
where estimate, lower and upper are numerical vectors, and labels is a
character vector that contains labels.
The problem is that labels are automatically sorted
Dear all,
I'm trying to create a dot plot with error bands with
Dotplot(labels ~ Cbind(estimate, lower, upper), data=For.plot)
where estimate, lower and upper are numerical vectors, and labels is a
character vector that contains labels.
The problem is that labels are automatically sorted
On May 10, 2010, at 10:00 AM, Alexey Bessudnov wrote:
Dear all,
I'm trying to create a dot plot with error bands with
Dotplot(labels ~ Cbind(estimate, lower, upper), data=For.plot)
where estimate, lower and upper are numerical vectors, and labels is
a character vector that contains
Many thanks for this suggestion. Indeed, labels turned out to be a
factor, and after reordering the levels I got the plot I wanted.
Alexey
David Winsemius wrote:
On May 10, 2010, at 10:00 AM, Alexey Bessudnov wrote:
Dear all,
I'm trying to create a dot plot with error bands with
Hi,
It might be too late but I'll answer anyway.
First, don't forget to follow the posting guide and provide some sample
data, your code, and/or exactly what you're looking for. And as Jannis
said, search also the archive.
Here are some thoughts about what you can do (if I understand you
Hi kayj
kayj schrieb:
Also, I do nto know how to combine two plots into one plot?
Have a look at ?par . There is some argument add or new (i am not
sure) that you have to set to TRUE after making the first plot and then
you can add a second plot with running plot() once more.
thanks and
Hi All,
I need to make a dot plot where the points of the plot are connected with
lines.is the possible to do in R?
Also, I do nto know how to combine two plots into one plot?
thanks and I appreciate your help
--
View this message in context:
?lines
?plot (with type= argument)
Ivan
Le 3/30/2010 17:55, kayj a écrit :
Hi All,
I need to make a dot plot where the points of the plot are connected with
lines.is the possible to do in R?
Also, I do nto know how to combine two plots into one plot?
thanks and I appreciate your help
On Wed, Jul 29, 2009 at 9:11 AM, jaregisuck...@mpi-cbg.de wrote:
Hi Michael, Steve, and 1Rnwb,
I'm very impressed by the quick replies on the mailer. Thanks a lot for your
suggestions. They worked very well.
In general, I have to say that I'm a bit disappointed that in R, like in
Excel,
Hi Michael, Steve, and 1Rnwb,
I'm very impressed by the quick replies on the mailer. Thanks a lot for your
suggestions. They worked very well.
In general, I have to say that I'm a bit disappointed that in R, like in
Excel, one basically needs to hack to get a dot blot with categories by
adding
Hi,
On Jul 29, 2009, at 12:11 PM, jaregi wrote:
Hi Michael, Steve, and 1Rnwb,
I'm very impressed by the quick replies on the mailer. Thanks a lot
for your
suggestions. They worked very well.
In general, I have to say that I'm a bit disappointed that in R,
like in
Excel, one basically
I use the long way, you might have to play around with my script to get is
correct. once you get it to work, you can add as many points to reflect,
median, percentile etc.
## generatiing vectors for Group1
a-LMMP8[Self_T1D==N]
w - a[!is.na(a)]
length(w)
c-mean(a, na.rm=TRUE)
c
I'm trying to wean myself off the very limited capabilities of Excel and Oo.
Currently, I am trying to make a plot showing several values for 2
categories in a dot blot (see
http://www.nabble.com/file/p24538360/Picture%2B1.png Picture+1.png except
that the x axis should contain the category not
On Fri, Jul 17, 2009 at 7:17 PM, jaregisuck...@mpi-cbg.de wrote:
I'm trying to wean myself off the very limited capabilities of Excel and Oo.
Currently, I am trying to make a plot showing several values for 2
categories in a dot blot (see
http://www.nabble.com/file/p24538360/Picture%2B1.png
Hi,
On Jul 17, 2009, at 1:17 PM, jaregi wrote:
I'm trying to wean myself off the very limited capabilities of Excel
and Oo.
Currently, I am trying to make a plot showing several values for 2
categories in a dot blot (see
http://www.nabble.com/file/p24538360/Picture%2B1.png Picture+1.png
Many many thanks for all your suggestions.
--
View this message in context:
http://www.nabble.com/Dot-plot---equivalent-of-MINITAB-tp19677009p19803454.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
Paul,
Have you tried the dotplot() function in the package epicalc? I think it
does what you want.
Sammy
kerfuffle wrote:
hi folks,
Bit of a newbie, but I've spent a fair bit of time looking for an answer
on this, with no joy. Can anyone help me?
Dataset: A single column of
Subject: Re: [R] Dot plot - equivalent of MINITAB
On 26/09/2008, at 7:51 AM, kerfuffle wrote:
hi folks,
Bit of a newbie, but I've spent a fair bit of time looking for an
answer on
this, with no joy. Can anyone help me?
Dataset: A single column of values in a csv file (eg. 52
I suggest the panel.dotplot.tb in the HH package.
It is a lattice panel function and therefore works
with standard trellis formulas including conditioning
variables and grouping variables.
library(HH)
example(panel.dotplot.tb)
Since you define what you want in terms of Minitab, I mention
that
hi folks,
Bit of a newbie, but I've spent a fair bit of time looking for an answer on
this, with no joy. Can anyone help me?
Dataset: A single column of values in a csv file (eg. 52, 53, 54, 85, etc)
Goal: In Minitab, you have what they call a dot plot. It's a histogram,
where a single dot
I think the problem is that what you describe is not what some
people, R folks included, refer to as dotplot, though I suppose
wikipedia as well as some other top google links seem to agree with
you and minitab. What you describe I think can be obtained with
something like:
x-
On 26/09/2008, at 7:51 AM, kerfuffle wrote:
hi folks,
Bit of a newbie, but I've spent a fair bit of time looking for an
answer on
this, with no joy. Can anyone help me?
Dataset: A single column of values in a csv file (eg. 52, 53, 54,
85, etc)
Goal: In Minitab, you have what they
50 matches
Mail list logo