Re: [R] R bar chart

2019-09-07 Thread Rui Barradas
Hello, There is no attached file, R-help is doesn't allow many file types. Try reposting with the extension .txt or post the output of dput(head(dataset, 20)) directly in your e-mail. Hope this helps, Rui Barradas Às 10:58 de 07/09/19, farshad goudarzian escreveu: Hello. Here I attach a m

[R] R bar chart

2019-09-07 Thread farshad goudarzian
Hello. Here I attach a microsoft excel data base file and plot image to illustrate my question. my code: ggplot(concretedata, aes(Company, Concrete, fill= Type))+geom_bar(stat="identity") As per the attachment plot, the bar chart for different parameters (Concrete, Company and Type) is present

Re: [R] Bar chart: break long bars

2011-10-25 Thread Jim Lemon
On 10/25/2011 09:27 PM, Florian Weiler wrote: Dear all, I have a problem with my stacked bar charts. I have one very long bar, hence I would like to break the x-axis at a certain point so that the shorter bars can be seen better. Here is a cooked up example: library(lattice) group<- rep(1:3,10)

[R] Bar chart: break long bars

2011-10-25 Thread Florian Weiler
Dear all, I have a problem with my stacked bar charts. I have one very long bar, hence I would like to break the x-axis at a certain point so that the shorter bars can be seen better. Here is a cooked up example: library(lattice) group <- rep(1:3,10) x <- runif(30, 0, 100) y <- runif(30, 0, 100)

Re: [R] bar chart issue

2011-07-20 Thread Jim Lemon
On 07/20/2011 01:56 PM, Stratford, Jeffrey wrote: Hi everyone, I determined the presence of three types parasites in a passerine bird over two years. I would like to create a bar chart that shows the proportion infected on the y and year/parasite on the x such that each type of parasite is gro

Re: [R] bar chart issue

2011-07-20 Thread Carlos Ortega
Hi Jeff, One way to graph the differences between the two years for the first set of data is via barchart(), a function equivalent to barplot in the lattice package. Please check if with this portion of code (and with your data) the graph you get is quite self-explanatory. ##

[R] bar chart issue

2011-07-20 Thread Stratford, Jeffrey
Hi everyone, I determined the presence of three types parasites in a passerine bird over two years. I would like to create a bar chart that shows the proportion infected on the y and year/parasite on the x such that each type of parasite is grouped together (single label) and a bar for each yea

Re: [R] Bar chart in ascending order for each level of X

2011-07-16 Thread Robert Baer
The question is how to plot a bar chart in which bars are sorted in ascending order for each level of X. I would appreciate receiving your advice and help. This toy example might help: barlab <- sample(LETTERS,10) values <- sample(1:100, 10) op <- par(mfrow= c(4,1)) barplot(values, names.arg

[R] Bar chart in ascending order for each level of X

2011-07-14 Thread Muhuri, Pradip (SAMHSA/CBHSQ)
Hello List, The question is how to plot a bar chart in which bars are sorted in ascending order for each level of X. I would appreciate receiving your advice and help. Thanks, Pradip Muhuri ** The following codes work when producing the chart in which bars are NOT sorted. Please see

Re: [R] Bar Chart

2011-03-24 Thread Jim Lemon
On 03/24/2011 03:26 AM, blutack wrote: How do you do a bar chart of 2 vectors? I have one vector which has 10 numbers, and another which has 10 names. The numbers are the frequency of the corresponding name, but when I do a bar chart it says that there is no height. Thanks. Hi blutack (any rela

Re: [R] Bar Chart

2011-03-23 Thread Philipp Pagel
> How do you do a bar chart of 2 vectors? > I have one vector which has 10 numbers, and another which has 10 names. > The numbers are the frequency of the corresponding name, but when I do a bar > chart it says that there is no height. Thanks. The first thing we'd need to know is HOW you tried to

Re: [R] Bar Chart

2011-03-23 Thread Francisco Gochez
Hi, It's difficult to know what is going wrong from what you say below (please include some reproducible code in the future as indicated in the posting guide). If you want to produce a bar chart of the numbers with the corresponding names as labels for these numbers, you can do something like thi

Re: [R] Bar Chart

2011-03-23 Thread David Winsemius
On Mar 23, 2011, at 12:26 PM, blutack wrote: How do you do a bar chart of 2 vectors? I have one vector which has 10 numbers, and another which has 10 names. The numbers are the frequency of the corresponding name, but when I do How did you "do" a barchart? Code please. a bar chart it sa

[R] Bar Chart

2011-03-23 Thread blutack
How do you do a bar chart of 2 vectors? I have one vector which has 10 numbers, and another which has 10 names. The numbers are the frequency of the corresponding name, but when I do a bar chart it says that there is no height. Thanks. -- View this message in context: http://r.789695.n4.nabble.c

Re: [R] bar chart with means - using ggplot

2009-09-11 Thread Dianne Cook
I would recommend not representing means by bars at all. Bars are for counts, stacking from zero. Means are point estimates. ggplot has a lot of routines for displaying means with errors bars: geom_linerange, geom_pointrange. To hone your ggplot skills I recommend looking into these geoms.

Re: [R] bar chart with means - using ggplot

2009-09-11 Thread Felipe Carrillo
Like this? # example using qplot library(ggplot2) meanprice <- tapply(diamonds$price, diamonds$cut, mean);meanprice cut <- factor(levels(diamonds$cut), levels = levels(diamonds$cut)) qplot(cut, meanprice, geom="bar", stat="identity", fill = I("grey50")) dev.new() # create a new graph to compare wi

[R] Bar Chart help!

2008-04-22 Thread john.hogan
Hi there, Im working with a bar chart. I want to create a bar chart using the followinf file: gender relationship Male Manage Male Manager Male Manager Male Manager Male Clerical Male Manager Male Manager Male Manager Male Manager Im trying to represe

Re: [R] bar-chart help

2008-04-22 Thread Richard . Cotton
> I have a table like below outside R environment > > Varible_Name > Labels > Bad_Percent > Good_Percent > Var1_Postal_Code_Availibility > 1 > 0,149367931 > 0,850632069 > > 0 > 0,19709687 > 0,80290313 > > Variable_Name column contains a single entry, the variable name, this is >

[R] bar-chart help

2008-04-22 Thread Emre Unal
Hi, I have a table like below outside R environment Varible_Name Labels Bad_Percent Good_Percent Var1_Postal_Code_Availibility 1 0,149367931 0,850632069 0 0,19709687 0,80290313 Variable_Name column contains a single entry, the variable name, this is the title of the graphic I w