similar to: Barchart questions

Displaying 20 results from an estimated 10000 matches similar to: "Barchart questions"

2008 Nov 17
1
coerce data.frame with table-like data to a table for use with barchart.table
I have a data.frame containing survey data that is already organized like a table: > foo Excellent Very Good Good Fair Poor Very Poor Question 1 8 7 3 0 0 0 Question 2 5 5 7 1 0 0 Question 3 7 10 1 0 0 0 > class(foo) [1] "data.frame" > I would like to make a barchart
2005 Apr 21
3
Need help with R date handling and barchart with errorbars
Hi All.. Have a question.. For the following r code testdata <- as.data.frame(t(structure(c( "1/1/04","LV1",3.8,2,87, "2/1/04","LV1",3.2,3,28, "3/1/04","LV1",3.4,3,88, "4/1/04","LV1",3,2,26, "5/1/04","LV1",3.8,2,87, "6/1/04","LV1",3.2,3,28,
2009 Dec 16
2
Flexclust barchart issue when mcol=NULL (PR#14150)
Full_Name: Chris Hane Version: 2.10.1 OS: Windows Submission from: (NULL) (198.203.181.181) When using barchart in the flexcust package, setting mcol=NULL to avoid the lollipops causes an error. Each panel shows the text message "Error using packet n replacement has length zero." where n is the panel number. > data(iris) > cl <- cclust(iris[,-5], k=3) > barplot(cl,
2009 Nov 26
3
barchart() {Lattice} help.
Hi R Users, I'm trying to plot a stacked barplot. Here is data: Sample Col1 Col2 Col3 Row1 -2 4 -1 Row2 3 -2 4 Row3 3 5 -2 Row4 4 1 -1 I'm using following R code: library(lattice) dta<-read.table("data.txt", header=TRUE, row.names="Sample") barchart(data.matrix(dta), horizontal=FALSE, stack=TRUE, col=2:4,
2009 Mar 30
1
advice for alternative to barchart
hi folks, I was wondering if anybody could give me some advice. I've created a stacked barchart, with 'car model' along the x axis, 'number of cars' along the y axis. There are 45 individuals involved, each of which can own any number of cars, of any model (eg an individual could own two cars of one model, and another car of a different model). I've got a legend by the
2008 Jun 26
1
Gettting barchart titles as numbers not characters
Hi, I wonder if you could help me with my barcharts, I am using the barchart function from the lattice library. I have data like this: Complex,Organisms,Percentage 130,0,50 130,1,10 130,2,20 130,3,15 130,4,5 133,0,10 133,1,15 133,2,20 133,3,50 133,4,5 I draw barcharts using this command...
2010 Apr 03
2
Export bug? Hist() vs. barchart().
Hi, If you want to export a single bar chart, this works: > png( "ET" ); > barchart( data[,"ET"] ) > dev.off() quartz_off_screen 2 But if you want to export a few of them, this does not: > factorCols <- c("MR","ET"); > sapply( factorCols, function(x) { + png( x ); + barchart( data[, x] ); + dev.off(); + } );
2005 Feb 15
1
Trellis barchart, column display order issue
I have searched the archives and instructions high and low but have not found what I need. I have a dataframe named Data with columns: AdjResND0 - the numeric result Parameter - the classification (chemical name) Sort - the order I want the chemical names to appear, with leading zeros so all are the same length Client.Name - the sample name I am trying to generate a series of 1 page barcharts,
2009 Dec 02
2
Help: barchart() {Lattice}
Hi R Users, I'm using following data/code (data is attached also) to produce a stacked barplot. # Sample Data: Names Col1 Col2 Col3 Row1 -20 40 -10 Row2 30 -20 40 Row3 30 10 -20 Row4 20 20 -10 # R Code: dta<-read.table("data.txt", header=TRUE, row.names="Names") barchart(data.matrix(dta), horizontal=FALSE, stack=TRUE, par.settings = simpleTheme(col =
2010 Jan 20
3
barchart with stacked and beside bars
Hi, Is there a way to stack bars in a barchart as well as "beside" bars for the same treatment? eg.... I have one barchart like this: bio<-matrix(c(10,23,9,25),nrow=2,byrow=T) ntreat<-c("n0","n96") colnames(bio)<-ntreat barplot(bio,beside=T) now i want a similar barchart but with stacked bars:
2018 Sep 22
2
grafico de barras (barchart) con barras de error y achurado (hatching) en lugar de escala de grises
Que tal comunidad, hace dias que estoy en un problema que no puedo resolver. Resulta que debo confeccionar un grafico de barras (columnas) que debe incluir barras de error. La unica forma en que me resulto es con barchart() de la libreria Hmisc, y haciendo un truco un poco complicado para mi nivel de usuario autodidacta. Ahora que ya lo tengo (despues de semanas de busqueda) resulta que me
2008 Jul 16
2
barchart with bars attached to y=0-line
Dear R users, i am using the following code to produce barcharts with lattice: Compound<-c("Glutamine", "Arginine", "Glutamate", "Glycine", "Serine", "Glucose", "Fructose", "Raffinose", "Glycerol", "Galacglycerol", "Threitol", "Galactinol", "Galactitol")
2018 Sep 22
2
grafico de barras (barchart) con barras de error y achurado (hatching) en lugar de escala de grises
Gracias Carlos !!!  ... alguna idea con la libreria lattice ? es solo que tengo que hacer 3 graficos diferentes y el aspecto de los mismos quedara diferente con lattice y ggplot. Voy a ver si me resulta todo en ggplot. Saludos y gracias de nuevo, Eric. On 22/09/18 12:08, Carlos Ortega wrote: > Hola, > > ggplot tiene un /geom /justamente para esto... > >
2012 Aug 28
4
barchart with 3 Arguments
Hi @ all, I have a problem concerning the barplot (barchart lattice) of a dataframe. I work with the attached dataframe. When I try to plot this dataframe I only get two rows plottet. When I try to plot the whole dataframe, there is message, that it is 'height' must be a vector or a matrix. On the y-axis, the "amount_cattle" should be displayed and on the x-axis the
2010 May 04
4
Show number at each bar in barchart?
when i plot a barchart with 5 bars there is one bar pretty long and the others get smaller like (20, 80, 20, 5, 2) is there a way of displaying the number accoirding to each bar next to it? like in a bwplot the panel option N? -- View this message in context: http://r.789695.n4.nabble.com/Show-number-at-each-bar-in-barchart-tp2125438p2125438.html Sent from the R help mailing list archive at
2008 Sep 16
2
Setting user colors in barchart
Dear R Users, I have a basis question regarding the use of color in the lattice package. I read the ?barchart help page and searched the R archives but could not understand how to do it. I just need to plot a barchart using specific colors for my groups, e.g. green and red instead of the default lattice colors. How do I do that? If I say: barchart(x ~ a_factor, groups=my_groups,
2012 Jan 20
1
Stacked barchart in ggplot (or other library)
Hey, I want to create a stacked barchart in R for the following dataset (http://pastebin.com/pyHUNgr2): # usage capacity diff 1 4 10 6 2 2 20 18 3 5 10 5 The stacked barchart should, in one plot show each line of the dataset as a stacked bar using data from 'usage' and 'diff' to create the stacked bar. I can't find a good example of how to do this on the ggplot2 site.
2009 May 18
1
Barchart in lattice - wrong order of groups, data labels on top of each other, and a legend question
Hello! I have a question about my lattice barchart that I am trying to build in Section 3 below. I can't figure out a couple of things: 1. When I look at the dataframe "test" that I am trying to plot, it looks right to me (the group "Total" is always the first out of 5). However, in the chart it is the last. Why? 2. How can I make sure the value labels (on y) are not
2008 Nov 22
2
How to add the value on the barchart
I have question: how can I put the value on the bar chart. This my code: barchart(Tuberize~Family|factor(Year)*factor(Hr),data=tuber) This's my data:    Year Hr Family Tuberize 1  2007 20      A     0.26 2  2007 20      B     6.08 3  2007 20      C     0.00 4  2007 20      D     0.27 5  2008 20      A     1.18 6  2008 20      B     9.17 7  2008 20      C     0.00 8  2008 20      D     2.13 9 
2006 Apr 21
1
plotting order in a barchart.: two problems
I am new at R and have a simple problem, I think. I have a matrix: [,1] [,2] [,3] a .5 2 .4 b 4 3.4 4 c 4 4 2 I want a barchart with the [,1] column plotted as the left-most group on a vertical bar chart or as the top group on a horizontal chart. However the plotting order is , [,3] [,2] [,1]. I also am having a problem getting the rows to plot on a