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,
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),
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
' 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
:[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
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
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
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
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
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.
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
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
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
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
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
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
__
[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
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
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
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
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
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
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.
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
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]
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
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-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:
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
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
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
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
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
[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)
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
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,
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
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,
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 ...
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
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
-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
-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
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
-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
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
101 - 146 of 146 matches
Mail list logo