For lattice::dotplot(), you are close; this is more like the layout you
want:
dotplot(Year ~ ptile | reorder(Population, ptile, mean), testLong,
groups = c("0-50", "50-90", "90-100")[time],
layout = c(1, NA),
par.settings = simpleTheme(pch = 16), auto.key = TRUE)
dotchart(
Hello, I am trying to make a Cleaveland Dotplot with two, if possible
three, variables on the vertical axis. I was able to do it in Stata
with two variables, Year and Population (see graph at the link:
https://drive.google.com/file/d/1SiIfmmqk6IFa_OI5i26Ux1ZxkN2oek-o/view?usp=sharing
). I hope the
Hi all
I was recently trying to customise a dotchart of a matrix
dats <- matrix(1:6, nrow=2, dimnames=list(R=letters[1:2], C=letters[14:16]))
dotchart(dats)
with pch and pt.cex and noticed some irregularities, namely that R
doesn't use the values in the positions it uses for plotting also for
th
Hi all,
I would like to ask you for help. I did a dotplot - using dotchart
function.
There are two localites (loc) with values 75 or 56 in my data ZZ.
The f column has 4 levels: P1, S1, S8, R6.
The dataframe is ordered by N value, pchloc value is assign to use "pch" in
plot.
> head(ZZ)
loc f
I've got another problem.
What if I have another dotchart with same categories, but one of the data
are missing (control A)??
So I want to leave out from the dotchart. In this case in the control
category should have only one dotline, because the other one is empty. Or
mark somehow that it's missi
1000x Thanks for all of your helps! All of it workd perfectly! :)
--
View this message in context:
http://r.789695.n4.nabble.com/dotchart-ordering-problem-tp4646038p4646138.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-pr
rom: Zenonn87
To: r-help@r-project.org
Cc:
Sent: Friday, October 12, 2012 4:38 PM
Subject: [R] dotchart ordering problem
I'm having an sorting problem in dotchart. I want to change the order of the
BA in groups to AB, but I haven't found any solution yet. What should I do?
And what if I w
2 23:39
> To: r-help@r-project.org
> Subject: [R] dotchart ordering problem
>
> I'm having an sorting problem in dotchart. I want to change the order of the
> BA in groups to AB, but I haven't found any solution yet. What should I do?
> And what if I want to change the groups orde
Hi,
You can reorder the matrix:
dotchart(a[c(2,1), 7:1], main="Dotchart", xlim=c(0,50))
Sarah
On Fri, Oct 12, 2012 at 4:38 PM, Zenonn87 wrote:
> I'm having an sorting problem in dotchart. I want to change the order of the
> BA in groups to AB, but I haven't found any solution yet. What should
I'm having an sorting problem in dotchart. I want to change the order of the
BA in groups to AB, but I haven't found any solution yet. What should I do?
And what if I want to change the groups order as well? At the bottom from
Conrol up to 10 mg/L on the top. Thank you!
x = c(39, 23, 23, 35, 30, 2
thank you all for the high level contributions and the very helpful
feedback;
I think I have now enogh material to study for months: what a good lesson
learned!
cheers
max
--
View this message in context:
http://r.789695.n4.nabble.com/Dotchart-showing-mean-and-median-by-group-tp4619597p46235
On Thu, May 10, 2012 at 2:24 AM, maxbre wrote:
> hi all
>
> I have another question reated to the dotchart: is it possible by means of
> par() to set a logaritmic scale?
> If yes, how ? and if not, any alternative solution?
>
1. This is getting increasingly complicated as new requirements are
add
On May 10, 2012, at 5:03 AM, David Winsemius wrote:
On May 10, 2012, at 2:24 AM, maxbre wrote:
hi all
I have another question reated to the dotchart: is it possible by
means of
par() to set a logaritmic scale?
If yes, how ? and if not, any alternative solution?
Looking at the dotchart
On May 10, 2012, at 2:24 AM, maxbre wrote:
hi all
I have another question reated to the dotchart: is it possible by
means of
par() to set a logaritmic scale?
If yes, how ? and if not, any alternative solution?
Looking at the dotchart code it appears to me that the log parameter
to plot.
hi all
I have another question reated to the dotchart: is it possible by means of
par() to set a logaritmic scale?
If yes, how ? and if not, any alternative solution?
thanks
--
View this message in context:
http://r.789695.n4.nabble.com/Dotchart-showing-mean-and-median-by-group-tp4619597p46226
On Wed, May 9, 2012 at 5:32 PM, Tal Galili wrote:
> Hello dear Gabor,
>
> First - thank you for this solution!
>
> Second - I see that the text that is added around the axes is a tiny bit
> shifted - causing a slight blur of the text. Does it happen only on
> Windows? Can it be fixed?
>
On my W
Hello dear Gabor,
First - thank you for this solution!
Second - I see that the text that is added around the axes is a tiny bit
shifted - causing a slight blur of the text. Does it happen only on
Windows? Can it be fixed?
Contact
Details:--
On Wed, May 9, 2012 at 3:25 AM, maxbre wrote:
> Given this example
>
> mean.values<-colMeans(VADeaths)
>
> mean.values<-apply(VADeaths, 2, mean)
> median.values<-apply(VADeaths, 2, median)
>
> dotchart(VADeaths, gdata=mean.values)
> dotchart(VADeaths, gdata=median.values)
>
> is it possible to “co
Hi Max,
I see that "dotchart" does not have a "add" parameter.
For the fun of it, I added this feature, you can see the source code of the
new function here:
https://raw.github.com/talgalili/R-code-snippets/master/dotchart.with.add.r
With your example at the end of the file.
Here is a page showing
Given this example
mean.values<-colMeans(VADeaths)
mean.values<-apply(VADeaths, 2, mean)
median.values<-apply(VADeaths, 2, median)
dotchart(VADeaths, gdata=mean.values)
dotchart(VADeaths, gdata=median.values)
is it possible to “combine” a single dotchart showing both the mean and the
median for
On Wed, Aug 17, 2011 at 11:59 PM, wrote:
> I'm trying to create a dotplot with some grouping.
>
> I've been able to create what I want using dotchart (basic graphics), but
> can't quite get it using dotplot (lattice). I prefer to use lattice (or
> ggplot2) because I think it's a bit easier to c
On 8/17/2011 11:29 AM, mkzo...@comcast.net wrote:
I'm trying to create a dotplot with some grouping.
I've been able to create what I want using dotchart (basic
graphics), but can't quite get it using dotplot (lattice). I prefer
to use lattice (or ggplot2) because I think it's a bit easier to
con
I'm trying to create a dotplot with some grouping.
I've been able to create what I want using dotchart (basic graphics), but can't
quite get it using dotplot (lattice). I prefer to use lattice (or ggplot2)
because I think it's a bit easier to control some other aspects of the plot
appearance.
On Tue, Feb 1, 2011 at 9:23 AM, Peter Ehlers wrote:
> Will this suffice:
>
> dotchart(c(table(infert$education)))
That is probably the cleanest answer for now (I tried something like
that with as.vector(), but lost the names). Another reasonable option
would be:
dotchart(unclass(table(infert$ed
On 2011-02-01 07:09, Joshua Wiley wrote:
Hi,
Its a bit messy, but here is a quick work around:
dotchart(as.matrix(table(infert$education))[,1])
I wonder if this has something to do with the addition of table
methods for points() and lines(). I'll post back if I find anything
more out.
Will
Hi,
Its a bit messy, but here is a quick work around:
dotchart(as.matrix(table(infert$education))[,1])
I wonder if this has something to do with the addition of table
methods for points() and lines(). I'll post back if I find anything
more out.
Cheers,
Josh
On Tue, Feb 1, 2011 at 6:52 AM, V
I have a factor vector of subject races (Asian, Black, Hispanic, White; n=30)
that I want to plot with a Cleveland dotplot or dotchart.
I tried the following in R2.12.1 :
> dotchart(table(school$Race))
Error in plot.xy(xy.coords(x, y), type = type, ...) : invalid plot type
Using the same data
On Jan 5, 2011, at 8:11 AM, e-letter wrote:
Readers,
The following commands were applied, to create a dot chart with black
dots and blue squares for data:
library(lattice)
testdot
category values
1b 44
2c 51
3d 65
4a 10
5b 64
6
Readers,
The following commands were applied, to create a dot chart with black
dots and blue squares for data:
> library(lattice)
> testdot
category values
1b 44
2c 51
3d 65
4a 10
5b 64
6c 71
7d 49
8a
Hi:
Is this what you're after?
dotplot(reorder(category, -values, mean) ~values, data=testdot)
See ?reorder
HTH,
Dennis
On Wed, Dec 22, 2010 at 2:59 AM, e-letter wrote:
> On 20/12/2010, e-letter wrote:
> > On 18/12/2010, e-letter wrote:
> >> On 18/12/2010, Peter Ehlers wrote:
> >>> On 201
On 20/12/2010, e-letter wrote:
> On 18/12/2010, e-letter wrote:
>> On 18/12/2010, Peter Ehlers wrote:
>>> On 2010-12-18 07:50, e-letter wrote:
> Ben Bolker
> Sat, 18 Dec 2010 07:07:24 -0800
>>>
>>> [... snip ...]
>>>
I am trying to create a chart like this
(http://www.b-eye-net
On 18/12/2010, e-letter wrote:
> On 18/12/2010, Peter Ehlers wrote:
>> On 2010-12-18 07:50, e-letter wrote:
Ben Bolker
Sat, 18 Dec 2010 07:07:24 -0800
>>
>> [... snip ...]
>>
>>> I am trying to create a chart like this
>>> (http://www.b-eye-network.com/images/content/Fig4_3.jpg); so thi
On 2010-12-18 10:27, e-letter wrote:
On 18/12/2010, Peter Ehlers wrote:
On 2010-12-18 07:50, e-letter wrote:
Ben Bolker
Sat, 18 Dec 2010 07:07:24 -0800
[... snip ...]
I am trying to create a chart like this
(http://www.b-eye-network.com/images/content/Fig4_3.jpg); so this is
not possible u
On Dec 18, 2010, at 1:27 PM, e-letter wrote:
On 18/12/2010, Peter Ehlers wrote:
On 2010-12-18 07:50, e-letter wrote:
Ben Bolker
Sat, 18 Dec 2010 07:07:24 -0800
[... snip ...]
I am trying to create a chart like this
(http://www.b-eye-network.com/images/content/Fig4_3.jpg); so this is
not
On 18/12/2010, Peter Ehlers wrote:
> On 2010-12-18 07:50, e-letter wrote:
>>> Ben Bolker
>>> Sat, 18 Dec 2010 07:07:24 -0800
>
> [... snip ...]
>
>> I am trying to create a chart like this
>> (http://www.b-eye-network.com/images/content/Fig4_3.jpg); so this is
>> not possible using R?
>
> That loo
On Dec 18, 2010, at 11:58 AM, e-letter wrote:
On 18/12/2010, Peter Ehlers wrote:
On 2010-12-18 07:50, e-letter wrote:
Ben Bolker
Sat, 18 Dec 2010 07:07:24 -0800
[... snip ...]
I am trying to create a chart like this
(http://www.b-eye-network.com/images/content/Fig4_3.jpg); so this is
not
On 18/12/2010, Peter Ehlers wrote:
> On 2010-12-18 07:50, e-letter wrote:
>>> Ben Bolker
>>> Sat, 18 Dec 2010 07:07:24 -0800
>
> [... snip ...]
>
>> I am trying to create a chart like this
>> (http://www.b-eye-network.com/images/content/Fig4_3.jpg); so this is
>> not possible using R?
>
> That loo
On 2010-12-18 07:50, e-letter wrote:
Ben Bolker
Sat, 18 Dec 2010 07:07:24 -0800
[... snip ...]
I am trying to create a chart like this
(http://www.b-eye-network.com/images/content/Fig4_3.jpg); so this is
not possible using R?
That looks an awful lot like what lattice's dotplot would
produce
6 50 49 308"),
>header=TRUE)
>
>## Something like this is probably as close as you can get with
>## stock 'dotchart' -- it does *not* (as far as I can tell) put
>## different points on the same line, just groups lines
>
I am tryi
On 18/12/2010, David Winsemius wrote:
>
> On Dec 18, 2010, at 7:01 AM, e-letter wrote:
>
>> Readers,
>>
>> I am trying to use the function dotchart. The data is:
>>
>>> testdot
>> category values1 values2 values3 values4
>> 1a 10 27 56 709
>> 2b 4 46
David Winsemius comcast.net> writes:
>
>
> On Dec 18, 2010, at 7:01 AM, e-letter wrote:
>
> > Readers,
> >
> > I am trying to use the function dotchart. The data is:
> >
> >> testdot
> > category values1 values2 values3 values4
> > 1a 10 27 56 709
> > 2b
On Dec 18, 2010, at 7:01 AM, e-letter wrote:
Readers,
I am trying to use the function dotchart. The data is:
testdot
category values1 values2 values3 values4
1a 10 27 56 709
2b 4 46 47 208
3c 5 17 18 109
4
Readers,
I am trying to use the function dotchart. The data is:
> testdot
category values1 values2 values3 values4
1a 10 27 56 709
2b 4 46 47 208
3c 5 17 18 109
4d 6 50 49 308
The fol
___
From: r-help-boun...@r-project.org [r-help-boun...@r-project.org] On Behalf Of
Nair, Murlidharan T [mn...@iusb.edu]
Sent: Wednesday, September 23, 2009 5:11 PM
To: Greg Snow; Henrique Dallazuanna
Cc: r-help@r-project.org
Subject: Re: [R] dotchart to barplots
Thanks Greg. I was also thinking about it after I saw my plots.
Cheers../Murli
-Original Message-
From: Greg Snow [mailto:greg.s...@imail.org]
Sent: Wednesday, September 23, 2009 3:49 PM
To: Nair, Murlidharan T; Henrique Dallazuanna
Cc: r-help@r-project.org
Subject: RE: [R] dotchart to
ssage-
From: Peter Ehlers [mailto:ehl...@ucalgary.ca]
Sent: Wednesday, September 23, 2009 3:56 PM
To: Nair, Murlidharan T
Cc: r-help@r-project.org
Subject: Re: [R] dotchart to barplots
Murli,
Two points:
1. I think you might want las=1;
2. have a look at the density= argument,
i.e. add densit
Guess, I miss the argument when I ?barplot.
Cheers../Murli
-Original Message-
From: Peter Ehlers [mailto:ehl...@ucalgary.ca]
Sent: Wednesday, September 23, 2009 3:56 PM
To: Nair, Murlidharan T
Cc: r-help@r-project.org
Subject: Re: [R] dotchart to barplots
Murli,
Two points:
1. I
Thanks Peter. Where did you find that option? It's really cool
Cheers../Murli
-Original Message-
From: Peter Ehlers [mailto:ehl...@ucalgary.ca]
Sent: Wednesday, September 23, 2009 3:56 PM
To: Nair, Murlidharan T
Cc: r-help@r-project.org
Subject: Re: [R] dotchart to barplots
-project.org
Subject: Re: [R] dotchart to barplots
Sorry, byt what you mean by 'designs'?
You can add a legend with:
barplot(t(as.matrix(intersect.data[,2:5])),
beside = T, horiz = T, legend.text = names(intersect.data)[-1],
names.arg = intersect.data[,1], cex.axis = 0.7
g [mailto:r-help-boun...@r-
> project.org] On Behalf Of Nair, Murlidharan T
> Sent: Wednesday, September 23, 2009 1:21 PM
> To: Henrique Dallazuanna
> Cc: r-help@r-project.org
> Subject: Re: [R] dotchart to barplots
>
> I had tried names.arg=c(intersect.data[,1]) so that was the p
The journal wants black and white only :)
-Original Message-
From: Henrique Dallazuanna [mailto:www...@gmail.com]
Sent: Wednesday, September 23, 2009 3:41 PM
To: Nair, Murlidharan T
Cc: r-help@r-project.org
Subject: Re: [R] dotchart to barplots
Perhaps a white border:
barplot(t
Message-
> From: Henrique Dallazuanna [mailto:www...@gmail.com]
> Sent: Wednesday, September 23, 2009 3:32 PM
> To: Nair, Murlidharan T
> Cc: r-help@r-project.org
> Subject: Re: [R] dotchart to barplots
>
> Sorry, byt what you mean by 'designs'?
&g
, Murlidharan T
Cc: r-help@r-project.org
Subject: Re: [R] dotchart to barplots
Sorry, byt what you mean by 'designs'?
You can add a legend with:
barplot(t(as.matrix(intersect.data[,2:5])),
beside = T, horiz = T, legend.text = names(intersect.data)[-1],
names.arg = interse
Still working on the other though.
> Cheers../Murli
>
>
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
> Behalf Of Nair, Murlidharan T
> Sent: Wednesday, September 23, 2009 3:21 PM
> To: Henrique Dallazuanna
> Cc: r-hel
-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
Behalf Of Nair, Murlidharan T
Sent: Wednesday, September 23, 2009 3:21 PM
To: Henrique Dallazuanna
Cc: r-help@r-project.org
Subject: Re: [R] dotchart to barplots
I had tried names.arg=c(intersect.data[,1]) so that was the
: Henrique Dallazuanna [mailto:www...@gmail.com]
Sent: Wednesday, September 23, 2009 3:09 PM
To: Nair, Murlidharan T
Cc: r-help@r-project.org
Subject: Re: [R] dotchart to barplots
Try this:
barplot(t(as.matrix(intersect.data[,2:5])),
beside = T, horiz = T,
names.arg
Try this:
barplot(t(as.matrix(intersect.data[,2:5])),
beside = T, horiz = T,
names.arg = intersect.data[,1], cex.axis = 0.7, cex.names = 0.7)
On Wed, Sep 23, 2009 at 4:01 PM, Nair, Murlidharan T wrote:
> Hi,
>
> I am trying to plot the following data so that it can be visuall
Hi,
I am trying to plot the following data so that it can be visually represented
well. I tried the dotchart but I felt it was too spread out. Then I tried the
barplot which is good enough for me. Is there a way to give the labels for the
y-axis as in the dot chart? Also, I feel the grey level
Subject: Re: [R] dotchart
Is because your first column and the object is a data.frame:
dotchart(as.matrix(intersect.data[-1]))
On Wed, Jun 4, 2008 at 3:42 PM, Nair, Murlidharan T <[EMAIL
PROTECTED]<mailto:[EMAIL PROTECTED]>> wrote:
I am trying to plot the following data us
Is because your first column and the object is a data.frame:
dotchart(as.matrix(intersect.data[-1]))
On Wed, Jun 4, 2008 at 3:42 PM, Nair, Murlidharan T <[EMAIL PROTECTED]> wrote:
> I am trying to plot the following data using dotchart
>
> intersect.data<-structure(list(X = structure(c(1L, 3L,
I am trying to plot the following data using dotchart
intersect.data<-structure(list(X = structure(c(1L, 3L, 8L, 9L, 10L, 11L, 12L,
13L, 14L, 15L, 2L, 4L, 5L, 6L, 7L), .Label = c("1-100", "1001-1100",
"101-200", "1101-1200", "1201-1300", "1301-1400", "1401-1500",
"201-300", "301-400", "401-500", "
Excellent, it does exactly what I wanted.. I had never
encountered "unname" before.
Thanks very much.
--- Gabor Grothendieck <[EMAIL PROTECTED]>
wrote:
> Try this:
>
> aa <- c(a = 1, b = 2, c = 3)
> dotchart(unname(aa), col = 1:3)
> axis(side = 2, seq_along(aa), names(aa))
>
>
>
> On Jan
Try this:
aa <- c(a = 1, b = 2, c = 3)
dotchart(unname(aa), col = 1:3)
axis(side = 2, seq_along(aa), names(aa))
On Jan 19, 2008 5:01 PM, John Kane <[EMAIL PROTECTED]> wrote:
>
> --- Gabor Grothendieck <[EMAIL PROTECTED]>
> wrote:
>
> > Use col= for that.
>
> Well yes, but I was trying to get th
--- Gabor Grothendieck <[EMAIL PROTECTED]>
wrote:
> Use col= for that.
Well yes, but I was trying to get the points on the
graph coloured and the value labels uncoloured (that
is black).
Thanks
>
> On Jan 19, 2008 4:31 PM, John Kane
> <[EMAIL PROTECTED]> wrote:
> > Thank you Gabor. The ex
Use col= for that.
On Jan 19, 2008 4:31 PM, John Kane <[EMAIL PROTECTED]> wrote:
> Thank you Gabor. The examples are excellent.
>
> I was misreading the intend of gcolor. I had thought
> that it would allow me to colour all of the value
> labels .
>
>
> --- Gabor Grothendieck <[EMAIL PROTECTED]>
Thank you Gabor. The examples are excellent.
I was misreading the intend of gcolor. I had thought
that it would allow me to colour all of the value
labels .
--- Gabor Grothendieck <[EMAIL PROTECTED]>
wrote:
> Or even one group if its named:
>
> dotchart(cbind(a = aa), gcolor = "red")
>
>
Or even one group if its named:
dotchart(cbind(a = aa), gcolor = "red")
On Jan 19, 2008 3:18 PM, Gabor Grothendieck <[EMAIL PROTECTED]> wrote:
> You only have one group. Try it with two groups:
>
> dotchart(cbind(a = aa, b = aa), gcolor = "red")
>
>
>
> On Jan 19, 2008 2:48 PM, John Kane <[EMAIL
You only have one group. Try it with two groups:
dotchart(cbind(a = aa, b = aa), gcolor = "red")
On Jan 19, 2008 2:48 PM, John Kane <[EMAIL PROTECTED]> wrote:
> It a trivial point but can anyone tell me why gcolor
> is not working here? I thought that I should be
> getting the letters in red.
It a trivial point but can anyone tell me why gcolor
is not working here? I thought that I should be
getting the letters in red. lcolor seems to work just
fine.
aa <- c(3,6,3,5,8)
lbs <- LETTERS[1:5]
dotchart(rev(aa), pch=16, labels=(rev(lbs)),
lcolor="blue", gcolor="red")
Looking for
69 matches
Mail list logo