[R] Barplot - Can't figure it out

2005-02-17 Thread T Petersen
Hi, I have two catagorical vectors like this; x = c(1, 2, 4, 2, 1) y = c(2, 4, 2 ,4, 1) I want to set up a barplot with the catagories 1-4 horizontally and number of occurances vertically for each vector x,y. I've tried boxplot(table(x,y), beside=T) and boxplot(c(x,y), beside=T) among others,

Re: [R] Barplot - Can't figure it out

2005-02-17 Thread Kevin Wang
Hi, T Petersen wrote: Hi, I have two catagorical vectors like this; x = c(1, 2, 4, 2, 1) y = c(2, 4, 2 ,4, 1) I want to set up a barplot with the catagories 1-4 horizontally and number of occurances vertically for each vector x,y. I've tried boxplot(table(x,y), beside=T) and boxplot(c(x,y),

Re: [R] Barplot - Can't figure it out

2005-02-17 Thread T Petersen
Ups, it should of course be barplot() in my mail, not boxplot:-) Kevin Wang wrote: Hi, T Petersen wrote: Hi, I have two catagorical vectors like this; x = c(1, 2, 4, 2, 1) y = c(2, 4, 2 ,4, 1) I want to set up a barplot with the catagories 1-4 horizontally and number of occurances vertically for

RE: [R] Barplot - Can't figure it out

2005-02-17 Thread Mulholland, Tom
' is 'TRUE', then the values in each column are juxtaposed rather than stacked. -Original Message- From: T Petersen [mailto:[EMAIL PROTECTED] Sent: Friday, 18 February 2005 1:35 PM To: Kevin Wang Cc: r-help@stat.math.ethz.ch Subject: Re: [R] Barplot - Can't figure it out

Re: [R] Barplot - Can't figure it out

2005-02-17 Thread T Petersen
:[EMAIL PROTECTED] Sent: Friday, 18 February 2005 1:35 PM To: Kevin Wang Cc: r-help@stat.math.ethz.ch Subject: Re: [R] Barplot - Can't figure it out Ups, it should of course be barplot() in my mail, not boxplot:-) Kevin Wang wrote: Hi, T Petersen wrote: Hi, I have two catagorical vectors

[R] Barplot at the axes of another plot

2005-01-20 Thread Robin Gruna
Hi, I want to draw a barplot at the axes of another plot. I saw that with two histogramms and a scatterplot in a R graphics tutorial somewhere on the net, seemed to be a 2d histogramm. Can someone figure out what I mean and give me a hint to create such a graphic? Thank you very much, Robin

Re: [R] Barplot at the axes of another plot

2005-01-20 Thread Marc Schwartz
On Thu, 2005-01-20 at 23:53 +0100, Robin Gruna wrote: Hi, I want to draw a barplot at the axes of another plot. I saw that with two histogramms and a scatterplot in a R graphics tutorial somewhere on the net, seemed to be a 2d histogramm. Can someone figure out what I mean and give me a hint

[R] barplot() options for intervals on axes

2004-12-06 Thread Sebastien Moretti
Hello, I am a beginner with R. I read many tutorials and the FAQ but I cannot solve my problem. I use barplot() to view my graph. I try to get more interval marks on y axis. I wasn't able to find options in 'help(barplot)' or 'help(par)' to do this with barplot(). I seek for another option to

Re: [R] barplot() options for intervals on axes

2004-12-06 Thread Uwe Ligges
Sebastien Moretti wrote: Hello, I am a beginner with R. I read many tutorials and the FAQ but I cannot solve my problem. I use barplot() to view my graph. I try to get more interval marks on y axis. I wasn't able to find options in 'help(barplot)' or 'help(par)' to do this with barplot(). See

Re: [R] barplot() options for intervals on axes

2004-12-06 Thread Chuck Cleland
Did you see the lab argument to par()? 'lab' A numerical vector of the form 'c(x, y, len)' which modifies the way that axes are annotated. The values of 'x' and 'y' give the (approximate) number of tickmarks on the x and y axes and 'len' specifies the label size.

Re: [R] barplot() options for intervals on axes

2004-12-06 Thread Sebastien Moretti
Did you see the lab argument to par()? 'lab' A numerical vector of the form 'c(x, y, len)' which modifies the way that axes are annotated. The values of 'x' and 'y' give the (approximate) number of tickmarks on the x and y axes and 'len' specifies the

Re: [R] barplot() options for intervals on axes

2004-12-06 Thread Marc Schwartz
On Mon, 2004-12-06 at 15:30 +0100, Sebastien Moretti wrote: Hello, I am a beginner with R. I read many tutorials and the FAQ but I cannot solve my problem. I use barplot() to view my graph. I try to get more interval marks on y axis. I wasn't able to find options in 'help(barplot)' or

Re: [R] barplot() options for intervals on axes

2004-12-06 Thread Sebastien Moretti
Hello, I am a beginner with R. I read many tutorials and the FAQ but I cannot solve my problem. I use barplot() to view my graph. I try to get more interval marks on y axis. I wasn't able to find options in 'help(barplot)' or 'help(par)' to do this with barplot(). I seek for

Re: [R] barplot() options for intervals on axes

2004-12-06 Thread Marc Schwartz
On Mon, 2004-12-06 at 16:31 +0100, Sebastien Moretti wrote: There are too many answers in the FAQ. Given the discussions here of late, I suspect that there will be one or two folks who might disagree with that statement... ;-) Marc __ [EMAIL

Fwd: Re: [R] barplot() options for intervals on axes

2004-12-06 Thread Sebastien Moretti
There are too many answers in the FAQ. For this topic ! Marc Schwartz -- Sebastien MORETTI Linux User - #327894 CNRS - IGS 31 chemin Joseph Aiguier 13402 Marseille cedex 20, FRANCE tel. +33 (0)4 91 16 44 55 __ [EMAIL PROTECTED] mailing list

[R] barplot() using beside=TRUE and the density argument

2004-12-01 Thread michael watson \(IAH-C\)
Hi I am using barplot() to draw some barplots, with a matrix as the data so that multiple bars are drawn for each data point. I want to use the argument beside=TRUE to juxtapose the bars instead of stacking them. If I execute: barplot(data,names.arg=names,density=c(20,10),beside=FALSE) I get

Re: [R] barplot() using beside=TRUE and the density argument

2004-12-01 Thread Petr Pikal
__ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] barplot() using beside=TRUE and the density argument

2004-12-01 Thread Marc Schwartz
On Wed, 2004-12-01 at 10:46 +, michael watson (IAH-C) wrote: Hi I am using barplot() to draw some barplots, with a matrix as the data so that multiple bars are drawn for each data point. I want to use the argument beside=TRUE to juxtapose the bars instead of stacking them. If I

Re: [R] barplot(2?) with CI from a zero reference line

2004-11-26 Thread Marc Schwartz
On Fri, 2004-11-26 at 07:56 +0100, Jean-Louis Abitbol wrote: Dear R Users, (and dear Marc) First of all many thanks for the answers to my previous questions. I would like to barplot the mean percent change of a variate with it's CI. Bars should start from the zero reference line to height

[R] barplot(2?) with CI from a zero reference line

2004-11-25 Thread Jean-Louis Abitbol
Dear R Users, (and dear Marc) First of all many thanks for the answers to my previous questions. I would like to barplot the mean percent change of a variate with it's CI. Bars should start from the zero reference line to height (in barplot2). Is there a way to tweak barplot2, for example, to

RE: [R] barplot(2?) with CI from a zero reference line

2004-11-25 Thread Mulholland, Tom
thumbs. Tom Mulholland -Original Message- From: Jean-Louis Abitbol [mailto:[EMAIL PROTECTED] Sent: Friday, 26 November 2004 2:56 PM To: [EMAIL PROTECTED] Subject: [R] barplot(2?) with CI from a zero reference line Dear R Users, (and dear Marc) First of all many thanks for the answers

Re: [R] Barplot difficulties

2004-11-16 Thread Frank E Harrell Jr
Heather J. Branton wrote: Hello. I am an R newbie struggling to learn and use R . I have read many portions of the R Reference Manual, as well as the FAQs. Given that I learn something new each time, I know I might be missing something obvious. But I appeal to your good nature to help me

[R] Barplot difficulties

2004-11-15 Thread Heather J. Branton
Hello. I am an R newbie struggling to learn and use R . I have read many portions of the R Reference Manual, as well as the FAQs. Given that I learn something new each time, I know I might be missing something obvious. But I appeal to your good nature to help me through this initial problem.

Re: [R] Barplot difficulties

2004-11-15 Thread Marc Schwartz
On Mon, 2004-11-15 at 19:03 -0500, Heather J. Branton wrote: Hello. I am an R newbie struggling to learn and use R . I have read many portions of the R Reference Manual, as well as the FAQs. Given that I learn something new each time, I know I might be missing something obvious. But I

[R] barplot

2004-10-16 Thread Sepp Gurgel
I have a table with two columns, one with types of blood (A, B, AB or 0) and one with the factor (negative = -1 or positive = 1). How can I combine those two columns so that 7 bars are plotted (A, B, AB, 0, -A, -B and -0)? -- __ [EMAIL PROTECTED]

Re: [R] barplot

2004-10-16 Thread Uwe Ligges
Sepp Gurgel wrote: I have a table Do you mean a data.frame? with two columns, one with types of blood (A, B, AB or 0) and one with the factor (negative = -1 or positive = 1). And from these you made a table? my.table - table(my.data.frame) How can I combine those two columns so that 7 bars are

Re: [R] barplot with vcd library

2004-09-16 Thread Gabor Grothendieck
Tatsuki Koyama Tatsuki.Koyama at Vanderbilt.edu writes: : : 'barplot' doesn't seem to work with vcd library. : Am I supposed to detach vcd when I want to use barplot? : Here's an example. : Say I have the following matrix, : : m - matrix(c(1,2,3, 4,5,6, 3,4,5, 2,3,4), ncol=4) : m : [,1]

[R] barplot and names.arg

2004-08-13 Thread Luis Rideau Cruz
R-help Is there any option to get closer the x-axis and names.arg from barplot? Thank you Luis Ridao Cruz Fiskirannsóknarstovan Nóatún 1 P.O. Box 3051 FR-110 Tórshavn Faroe Islands Phone: +298 353900 Phone(direct): +298 353912 Mobile: +298 580800 Fax:

Re: [R] barplot and names.arg

2004-08-13 Thread Marc Schwartz
On Fri, 2004-08-13 at 09:22, Luis Rideau Cruz wrote: R-help Is there any option to get closer the x-axis and names.arg from barplot? Thank you Using mtext() you can do something like the following: data(VADeaths) # Now place labels closer to the x axis # set 'axisnames' to FALSE so the

[R] barplot

2004-05-24 Thread Carlos Guevel
I´ve tried version 1.9.0 barplot with these (and others) example from the help page: tN - table(Ni - rpois(100, lambda=5)) r - barplot(tN, col='gray') I get : ...OLE_Obj... Same example with version 1.8.1 gives the following result: ...OLE_Obj... What is wrong with v.1.9.0? Thanks

Re: [R] barplot

2004-05-24 Thread Sundar Dorai-Raj
Carlos Guevel wrote: I´ve tried version 1.9.0 barplot with these (and others) example from the help page: tN - table(Ni - rpois(100, lambda=5)) r - barplot(tN, col='gray') I get : ...OLE_Obj... Same example with version 1.8.1 gives the following result: ...OLE_Obj... What is wrong

[R] Barplot and R 1.9.0

2004-04-22 Thread Michael Bibo
I would like to preface this by saying that I have not been using R for long, and consider myself a beginner. But the more I use and learn R, the more impressed I am with both the 'product' itself, and the efforts of those developing it. It has been noted (eg Duncan Murdoch, 15 April), that

Re: [R] barplot fill patterns

2004-04-18 Thread Tamas Papp
On Sun, Apr 18, 2004 at 11:28:09PM -0400, Hector L. Ayala-del-Rio wrote: Dear R-helpers, I will like to know if there is a way to generate a stacked column graph using both patterns and colors to fill the bars. I have many categories for the number of color available in R, so I will

Re: [R] Barplot errors in MASS script

2004-01-01 Thread Uwe Ligges
[EMAIL PROTECTED] wrote: Reading Modern Applied Statististics with S and trying the corresponding examples both in the book and in ../lib/R/library/MASS/script, I'm now trying chapter 4 plotting bars with the following code on a linux box with R 1.8.1: -- library(MASS)

[R] barplot plot together

2003-12-18 Thread juli g. pausas
Dear colleges, I'm trying to combine a barplot and a plot in a single figure as follows: data - 1:6 t - barplot(data, axes=F) par(new= T) plot(t, data, type=b) However, as you can see in the example, the dots of the second plot do not fall in the midpoint of the bars in the first. Any trick for

Re: [R] barplot plot together

2003-12-18 Thread Martin Maechler
juli == juli g pausas [EMAIL PROTECTED] on Thu, 18 Dec 2003 10:54:08 +0100 writes: juli Dear colleges, juli I'm trying to combine a barplot and a plot in a single figure as follows: juli data - 1:6 juli t - barplot(data, axes=F) juli par(new= T) juli plot(t, data,

Re: [R] barplot plot together

2003-12-18 Thread Peter Dalgaard
juli g. pausas [EMAIL PROTECTED] writes: Dear colleges, I'm trying to combine a barplot and a plot in a single figure as follows: data - 1:6 t - barplot(data, axes=F) par(new= T) plot(t, data, type=b) However, as you can see in the example, the dots of the second plot do not fall in

Re: [R] barplot plot together

2003-12-18 Thread juli g. pausas
Thank you very much! I'm using par(new = TRUE) because in my real case, the 2 plots have different ylim (different y-scale). I got what I wanted by using the same xlim in the barplot and in the plot, as suggested by Peter. My real case: par(mar= c(7, 4, 5, 5) + 0.1) area - c(136, 3426,

[R] barplot(names.arg) versus axis(labels)

2003-11-07 Thread Siddique, Amer
Should I be able to use axis() on a barplot? i have a data.frame, the first 3 values of which are: c[1:3,] median mean A156.5 58.5 A61 73.0 73.0 A62 63.0 63.0 str(c) `data.frame': 19 obs. of 2 variables: $ median: num 56.5 73 63 161 51 55 44.5 22 54 49 ...

Re: [R] barplot(names.arg) versus axis(labels)

2003-11-07 Thread Marc Schwartz
On Fri, 2003-11-07 at 14:29, Siddique, Amer wrote: Should I be able to use axis() on a barplot? i have a data.frame, the first 3 values of which are: c[1:3,] median mean A156.5 58.5 A61 73.0 73.0 A62 63.0 63.0 str(c) `data.frame': 19 obs. of 2

[R] barplot

2003-07-22 Thread picklwolfgang
is this the right mailinglist for my trivial barplot() problem? mfg wolfgang __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

RE: [R] barplot legend size

2003-03-21 Thread Marc Schwartz
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ott Toomet Sent: Friday, March 21, 2003 8:44 AM To: [EMAIL PROTECTED] Subject: [R] barplot legend size Dear R-people, are there any way to change the size of legend in barplot? I have tried various

RE: [R] barplot default colors

2003-02-05 Thread Marc Schwartz
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Liaw, Andy Sent: Wednesday, February 05, 2003 7:00 AM To: '[EMAIL PROTECTED]' Subject: [R] barplot default colors Dear R-help, Can some one explain why barplot() uses changing colors in the bars

Re: [R] barplot default colors

2003-02-05 Thread Thomas Lumley
On Wed, 5 Feb 2003, Liaw, Andy wrote: Can some one explain why barplot() uses changing colors in the bars by default? I should think that most of the time when people draw barplots, they want the bars to be in the same color. (At least that's what I'd expect. The first time I used

RE: [R] barplot plotting problem

2003-01-17 Thread Marc Schwartz
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Jeremy Butler Sent: Thursday, January 16, 2003 11:42 PM To: [EMAIL PROTECTED] Subject: [R] barplot plotting problem Hi, Is there any equivalent of type=n when constructing barplots which

[R] barplot plotting problem

2003-01-16 Thread Jeremy Butler
Hi, Is there any equivalent of type=n when constructing barplots which will still construct the axes (plot=F, as it says doesn' plot anything at all). Alternatively I tried setting col=white and border=white but the border command does not seem to be operational. True?? Any other ideas? What I'm

<    1   2