Richard- thank you very very much, this is exactly what I needed. I have
not previously used lattice graphics, I will have to experiment more with
this package.
Also thanks to everyone for your input.
-jh
On Sun, May 27, 2012 at 1:04 PM, Richard M. Heiberger wrote:
> I would use barchart in la
I would use barchart in lattice. To get control of spacing you need to use
the panel.barchart with
the xyplot function. I show two options below. The first labels the
distance scale with the default
values seq(0,300,50), The second labels the bars with their distance value.
tmp <-
data.frame(y
On 27.05.2012 17:46, jack hietpas wrote:
Hi Jim- Thanks for your help. I am not sure how to execute your
instructions... I used the space argument to to equally space the bars
(barplot(data, space=c(1,1,1,1,1,1)).
How do I get the "x positions in the return values". Take care,
xp <- barpl
Hi Jim- Thanks for your help. I am not sure how to execute your
instructions... I used the space argument to to equally space the bars
(barplot(data, space=c(1,1,1,1,1,1)).
How do I get the "x positions in the return values". Take care,
-jh
On Sun, May 27, 2012 at 3:42 AM, Jim Lemon wrote:
On 05/27/2012 01:26 PM, jack hietpas wrote:
Hello- I am having trouble making a barplot...
The y-values are:
data=c(-0.0002129061,0.00,-0.0002699561,0.0163883061,0.04).
The x-values are distance=c(0, 71, 172, 206, 292).
The desired x-range is 0 and ~300+ (kilometers), range=seq(
It sounds like you want something of the form
plot(distance, data, type = "h")
But the lines might be too thin: try adding lwd = NUM to increase the
thickness.
Hope this helps,
Michael
On Sat, May 26, 2012 at 11:26 PM, jack hietpas wrote:
> Hello- I am having trouble making a barplot...
>
> Th
Hello- I am having trouble making a barplot...
The y-values are:
data=c(-0.0002129061,0.00,-0.0002699561,0.0163883061,0.04).
The x-values are distance=c(0, 71, 172, 206, 292).
The desired x-range is 0 and ~300+ (kilometers), range=seq(0,300,1)
I would like to make a bar plot with
5"), each=20)
#Making sites a factor will produce the stratified boxplots
sites<-as.factor(sites)
#Produce boxplot
boxplot(alphaBCI~sites)
From: André Silva
To: r-help@r-project.org
Sent: Friday, April 20, 2012 8:28 PM
Subject: [R] Barplot problem
Hell
Hello,
I have little experience with r, so I wonder if someone could help me?
I need to plot a diversity measure (Fisher`s alpha) for different sites. I
calculated the values using the following commands:
Data(BCI)
alphaBCI <- fisher.alpha(BCI)
I need boxplots showing the data variation between s
Thanks guys, that's exactly what I was looking for!
Pieter
--
This message was sent on behalf of [EMAIL PROTECTED] at openSubscriber.com
http://www.opensubscriber.com/message/r-help@r-project.org/8030546.html
__
R-help@r-project.org mailing list
https:
On 2007-11-20, jim holtman <[EMAIL PROTECTED]> wrote:
> Does something like this work for you? You can vary the mgp parameter
> for placement of the label.
>
You can also use mtext to place the axis label separately:
barplot(rev(modelledprofile),horiz=TRUE,xlim=c(0,1),col="cornflowerblue",names.
Does something like this work for you? You can vary the mgp parameter
for placement of the label.
modelledprofile <- c(7.072289e-01, 2.625354e-01, 2.932886e-02,
8.986474e-04, 8.155270e-06, 2.537943e-08, 3.137954e-11, 1.729522e-14,
4.579875e-18, 6.069698e-22, 4.100828e-26, 1.423359e-30, 1.272139e
Here's an example of my problem:
modelledprofile <- c(7.072289e-01, 2.625354e-01, 2.932886e-02, 8.986474e-04,
8.155270e-06, 2.537943e-08, 3.137954e-11, 1.729522e-14, 4.579875e-18,
6.069698e-22, 4.100828e-26, 1.423359e-30, 1.272139e-35, 5.449925e-46,
1.431925e-57, 1.629660e-70)
depthnames <-
c
Hello,
I'm trying to find out how I can move the y axis label of a horizontal barplot
further away from the axis, in order to avoid overlap between the names (which
I have rotated using las=1) and the label. I have been fiddling with the
graphical parameters but nothing seems to work. Maybe a g
14 matches
Mail list logo