Displaying 20 results from an estimated 8000 matches similar to: "labels and barchart"
2002 Mar 27
2
Vertical bars with barchart()
I would like to create a barchart that has vertical instead of horizontal
bars. My goal is something similar to Figure 6.10 (p. 166) in
"The Basics of S and S-plus," except for the orientation of the bars.
I don't think bwplot() or xyplot() will work. Any suggestions?
Scott Waichler
Hydrology Group/Environmental Technology Division
Battelle Pacific Northwest National Laboratory
2012 Mar 03
2
Grouped barchart confidence intervals in lattice
Hi everyone,
I'm having trouble adding error bars to a grouped barchart in lattice. I know that this topic has been addressed quite a bit, as I've been searching the internet for a while to try to troubleshoot the issue, but I've not been able to find any solution that I could get working on my data. I was wondering if someone could look at my code and tell me what I'm doing
2007 Dec 09
3
Barchart, Pareto
Hello
Well I am relatively new so some of these issues may not fall under the subject that I have used.
1. How do I do a Pareto. Following is the approach I took.
My data looks like this
df2_9
Reaason.for.failure Frequency
1 Phy Conn 1
2 Power failure 3
3 Server software 29
4 Server hardware 2
5 Server out of mem 32
2006 May 15
1
Trying to get values to display on horizontal barchart
Hello,
R 2.3.0
Windows XP
I have spent quite a bit of time trying to resolve my problem below, which included a R site search.
The "vertical bars" syntax below produces a vertical bar chart with the values displayed above each bar. I want to cast this graphic horizontally, but I have not been able to arrive at a suitable outcome. The best I have been able to do, using the second block
2002 May 13
3
Histograms rotated, side-by-side
Hi there,
I am wanting to create 8 side-by-side histograms which have been rotated 90
degrees clockwise from how they usually sit.. all with the same scales. Is
someone able to help me out?
Thanks so much,
Rachel Cunliffe
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send
2018 Jan 09
1
barplot_add=TRUE
Dear Gerrit
Thanks a lot. "rbind" seems to be the right function. Unfortunately there is a shift in the x-axis (see pdf). There are 52 trapcatch values each, m and w, but m$trapcatch and w$trapcatch are shifted up to x-value 60.
The follow-up lines for temp and humidity are fine.
Thanks
Sibylle
setwd("~/Desktop/DatenLogger2017") # am Mac sks
trap =
2018 Jan 09
3
barplot_add=TRUE
Dear R users
aim
Barplot of insect trap catches (y variable trapcatch) at one specific station (variable FiBL_Hecke) from week 1-52 ( x variable week).
It works well using the function tapply (sum trapcatch per week, males and females not separated), however, I intend to separate the y variable trapcatch in males and females (variable m_w: m and w)
problem
I used the function "add" to
2018 Jan 09
0
barplot_add=TRUE
Hi, Sibylle,
since you write '"mathematically" add', does
barplot(rbind(m$trapcatch, w$trapcatch))
do what you want (modulo layout details)?
Hth -- Gerrit
---------------------------------------------------------------------
Dr. Gerrit Eichner Mathematical Institute, Room 212
gerrit.eichner at math.uni-giessen.de Justus-Liebig-University Giessen
Tel:
2010 Feb 21
2
Newbie woes with par:mar
I have a simple barchart with horizontal bars and horizontal tick labels,
produced with
barplot(x, horiz = T, names.arg = c, las = 1)
The labels are longish strings, truncated on the plot. I wish to leave more
space for the left margin, and experiment with mar parameter,
barplot(x, horiz = T, names.arg = c, las = 1, mar = c(5, 15, 4, 2))
trying various values for the second vector element, but
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
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
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,
2023 May 03
1
[External] Error in percentage stacked barplot
Dear Richard,?
Thank you very much for your reply. I went through the code and it worked. I was also able to change the colours.?
I was wondering if I can change the legend position; instead of being in the bottom to be on the left side.?
I tried the following but without any success
strip = FALSE
strip.right = TRUE
likert(t(hellisheidi), ReferenceZero=.5, xlab="X-lab",
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:
2002 Jun 17
1
Clusters of adjacent bars in barchart()
Can I create a barchart in lattice with clusters of adjacent bars, which is
possible with barplot() when beside=TRUE? How can I
accomplish the grouping in lattice that is done with
inputting a matrix to barplot()?
Thanks,
Scott Waichler
Hydrology Group/Environmental Technology Division
Battelle Pacific Northwest National Laboratory
________________________________________________
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...
>
>
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
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,
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,
2008 Oct 05
1
barchart for aggregated (sum) data in lattice?
Hi list,
I have data in a dataframe t1, with a column for different amounts
spent, a column what it was spent on, and a column with dates, from
which I create a new column with months.
Example:
amount <- rep(c(10,20,30),3)
what <- rep(c("food","books","cycling"),3)
when <- c(rep("2008-09-05",5),rep("2008-10-07",4))
t1 <-