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(
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
HI,
Try this:
Hi,
Try this:
#For your first question:
dotchart(a[rev(order(rownames(a))),],main="Dotchart",xlim=c(0,50))
#For your second question:
dotchart(a[rev(order(rownames(a))),rev(1:ncol(a))],main="Dotchart",xlim=c(0,50))
A.K.
- Original Message -
From: Zenonn87
To: r-help
Reorder the rows and/or columns of your matrix: e.g. dotchart(a[2:1,7:1],
main="Dotchart", xlim=c(0,50))
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org]
> On Behalf Of Zenonn87
> Sent: Friday, October 12, 2012 23:39
> To: r-help@r-project.or
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
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
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
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
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
>Ben Bolker
>Sat, 18 Dec 2010 07:07:24 -0800
>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
>> > 1
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
___
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
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,
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.
58 matches
Mail list logo