Re: [R] barplot problem

2012-05-27 Thread Jim Lemon
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),

Re: [R] barplot problem

2012-05-27 Thread jack hietpas
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

Re: [R] barplot problem

2012-05-27 Thread Uwe Ligges
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 -

Re: [R] barplot problem

2012-05-27 Thread Richard M. Heiberger
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 -

Re: [R] barplot problem

2012-05-27 Thread jack hietpas
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 r...@temple.eduwrote: I would use

[R] barplot problem

2012-05-26 Thread jack hietpas
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

Re: [R] barplot problem

2012-05-26 Thread R. Michael Weylandt
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 mikros...@gmail.com wrote: Hello- I am having trouble making a

[R] Barplot problem

2012-04-20 Thread André Silva
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

Re: [R] Barplot problem

2012-04-20 Thread Mark Lamias
boxplots sites-as.factor(sites)   #Produce boxplot boxplot(alphaBCI~sites) From: André Silva berthol...@gmail.com To: r-help@r-project.org Sent: Friday, April 20, 2012 8:28 PM Subject: [R] Barplot problem Hello, I have little experience with r, so I wonder

[R] barplot problem

2007-11-20 Thread pieterprovoost
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

Re: [R] barplot problem

2007-11-20 Thread pieterprovoost
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 -

Re: [R] barplot problem

2007-11-20 Thread pieterprovoost
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