Re: [R] Dotchart showing mean and median by group

2012-05-10 Thread maxbre
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

Re: [R] Dotchart showing mean and median by group

2012-05-10 Thread Gabor Grothendieck
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

Re: [R] Dotchart showing mean and median by group

2012-05-10 Thread David Winsemius
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

Re: [R] Dotchart showing mean and median by group

2012-05-10 Thread David Winsemius
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.

Re: [R] Dotchart showing mean and median by group

2012-05-10 Thread maxbre
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

Re: [R] Dotchart showing mean and median by group

2012-05-09 Thread Gabor Grothendieck
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

Re: [R] Dotchart showing mean and median by group

2012-05-09 Thread Tal Galili
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:--

Re: [R] Dotchart showing mean and median by group

2012-05-09 Thread Gabor Grothendieck
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

Re: [R] Dotchart showing mean and median by group

2012-05-09 Thread Tal Galili
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

[R] Dotchart showing mean and median by group

2012-05-09 Thread maxbre
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