search for: barpo

Displaying 19 results from an estimated 19 matches for "barpo".

Did you mean: barp
2018 Feb 05
0
help with the plot overlay
Hi Ace, You can do it with plotrix: library(plotrix) barpos<-barp(c(1,5,38),width=0.5,col=c("white","lightgray","darkgray"),ylim=c(0,70)) ehplot(c(1,0.8,0.9,0.8,1.1,1,4,3,5,14,3,2,32,27,33,30,50,61), c(1,1,1,1,1,1,2,2,2,2,2,2,3,3,3,3,3,3),median=FALSE,add=TRUE,cex=2, pch=21,bg="white") dispersion(barpos$x,barpos...
2018 Feb 04
2
help with the plot overlay
Dear R Community, I recently read an article and found a plot as attached. It has scatterplot, barplot, and error bar. Could anyone help me to figure out what package I can use in R to generate such plot? Thank you very much for any inputs! Kind regards, Ace -------------- next part -------------- A non-text attachment was scrubbed... Name: Screen Shot 2018-02-04 at 6.38.14 AM.png Type: image/png
2012 Mar 15
1
Bar graph with 2 Y axis
Dear R users,   I need to draw a barplot with 2 Y axis. I have 3 days each of wich having 2 groups (and error bar for each of them). The height of the 3rd day is too tall compared to others. That's why I have to use a second Y axis for that. I am using  "barplot2" function of "gplots" library (to be able to add error bars as well). Data and  codes currently I am using is
2018 May 22
2
Plot qualitative y axis
...t; > ppdf<-read.table(text="N M W > I 10 106 > II 124 484 > III 321 874 > IV 777 1140 > V 896 996 > VI 1706 1250 > VII 635 433 > VIII 1437 654 > IX 693 333 > X 1343 624 > XI 1221 611 > XII 25 15 > XIII 3 NA > XIV 7 8", > header=TRUE) > barpos<-barplot(t(as.matrix(ppdf[,2:3])),horiz=TRUE, > names.arg=ppdf$N,beside=TRUE,col=c("red","blue")) > legend(1000,8,c("W","M"),fill=c("blue","red")) > lines(ppdf$W,barpos[2,],col="blue") > lines(ppdf$M,barpos[1,],c...
2012 Oct 23
2
plotting multiple variables in 1 bar graph
I'd greatly appreciate your help in making a bar graph with multiple variables plotted on it. All the help sites I've seen so far only plot 1 variable on the y-axis Data set: I have 6 sites, each measured 5 times over the past year. During each sampling time, I counted the occurrences of different benthic components (coral, dead coral, sand, etc.) over 5 transects in each site site
2018 May 23
0
Plot qualitative y axis
...t; > ppdf<-read.table(text="N M W > I 10 106 > II 124 484 > III 321 874 > IV 777 1140 > V 896 996 > VI 1706 1250 > VII 635 433 > VIII 1437 654 > IX 693 333 > X 1343 624 > XI 1221 611 > XII 25 15 > XIII 3 NA > XIV 7 8", > header=TRUE) > barpos<-barplot(t(as.matrix(ppdf[,2:3])),horiz=TRUE, >? names.arg=ppdf$N,beside=TRUE,col=c("red","blue")) > legend(1000,8,c("W","M"),fill=c("blue","red")) > lines(ppdf$W,barpos[2,],col="blue") > lines(ppdf$M,barpos[1,],c...
2018 May 23
0
Plot qualitative y axis
...IV 777 1140 >>> V 896 996 >>> VI 1706 1250 >>> VII 635 433 >>> VIII 1437 654 >>> IX 693 333 >>> X 1343 624 >>> XI 1221 611 >>> XII 25 15 >>> XIII 3 NA >>> XIV 7 8", >>> header=TRUE) >>> barpos<-barplot(t(as.matrix(ppdf[,2:3])),horiz=TRUE, >>> names.arg=ppdf$N,beside=TRUE,col=c("red","blue")) >>> legend(1000,8,c("W","M"),fill=c("blue","red")) >>> lines(ppdf$W,barpos[2,],col="blue") >&g...
2009 Apr 24
2
displaying percentage in bar plot
Hi, I have a query regarding barplot I have a following data AIS LEvel 1 2 3 body region A 10 15 20 B 15 25 15 Now I want to plot a barplot and in each bar (corresponding a body region), I need a percentage of AIS level 1 displayed in the plot. Is there an
2012 Nov 23
2
Barplot with lines
Hi, I'm trying to plot stacked barplot with lines on it. Here is the data. emp days val1 val2 score 1 21 1 0 1200 2 35 1 1 na 3 42 na na 3000 4 53 2 1 2100 5 64 1 0 na 6 73 na na 1400 My X-axis is days. I'm looking to plot val1,val2 as stacked bars and score as lines with different y-axis. I could get the bar plot and lines on it but the problem is the bars and lines are not aligning
2008 Jun 18
1
reformatting R scripts for htmlize()
Hi! I have a bunch of (mainly class) R scripts that I would like to convert into html pages (although if someone thinks that what I want to do is easier with latex or pdf, please tell me). Considering the format of my files, htmlize() seems the best option. The only problem is that I would need to write graphics to a file, thus converting parts like: plot(sel$hora, sel$COD_SP_C) #and check the
2012 Oct 19
5
Centering labels on X-axis
Dear all: I am trying to center labels on my plot with not much success. I have tried text(), mtext() but it's not working. I think I am using the wrong function for my task. Any help will be appreciated. My working codes. axis(1, at=c(1,2,3,4,5),font.lab=2,cex.axis=1.5,cex.lab=3,label=c("W0","CWH2","CWHmc","CH2","CHmc")
2018 Apr 29
1
Overlay line on a bar plot - multiple axis
Dear all, I am trying to make a similar plot - https://peltiertech.com/images/2013-09/BarLineSampleChart4.png. I have data for two variables; count and z by city and week. I would like to have a horizontal bar plot of *count* by city and a line plot of weekly average of the variable *z*. I have tried the following: ggplot() + geom_bar(data=dat, aes(x=city, y=count),
2018 Jan 15
5
barplot that displays sums of values of 2 y colums grouped by different variables
I am trying to create a barplot displaying the sums of 2 columns of data grouped by a variable. the data is set up like this: "city" "n" "y" <br> mon 100 200 <br> tor 209 300 <br> edm 98 87 <br> mon 20 76 <br> tor 50 96 <br> edm 62 27 <br> the resulting plot should have city as the x-axis, 2 bars per city, 1 representing
2012 Dec 01
1
x axis labels
Hi, I have a problem with plotting my data as a histogram using barplot2. I am plotting the x axis using axis(). I want to label only every fifth bar and not all of them as they get too busy but I don't know how to do it. I was trying to set the labels for the axis using at=seq(min value, max value, by=5) but that leads to labels not being under the right bars but just sort of spread around.
2007 Mar 20
2
Ticks on barplots
Dear Gurus, Using R 2.4.1 on Windows XP I am generating stacked barplots of age-composition of fish populations (Y) over time (X). As there are many years, not every bars is labeled. When looking at the plot, it becomes difficult to associate labels with their bars. We have improved this a bit by using axis() to add a tickmark below each bar. Can anyone suggest a way to draw ticks ONLY
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
2007 Mar 01
2
barplot2, gap.barplot
Hello, I try to handle a simple bar-plot, but it turns out to be not as simple as I thought. 1) I have created a .dat-File, e.g. test.dat: DATA DATA-SEM 2.2 0.32 6.2 1.30 12.7 1.61 48.6 3.08 4.1 0.86 4.5 0.32 1.5 1.13 1.2 1.08 The first row is the data represented by bars. The second row deals with the Standard Error of Mean. The lines correspond to time-intervals of experiments. 2) I now
2016 Apr 04
0
multiple bar plot annotation text labelling
Use only plain text emails. Don't attach file types that will be stripped. See the footer at the bottom of your email for more information. Do give us the data using dput(): > dput(testbarplot) structure(list(V1 = c(1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L), V2 = c(3L, 8L, 1L, 9L, 5L, 4L, 2L, 0L), V3 = structure(c(1L, 2L, 3L, 4L, 3L, 5L, 6L, 7L), .Label = c("A", "B",
2016 Apr 04
2
multiple bar plot annotation text labelling
Readers, The attempt is to create a bar plot with text labels adjacent to each datum value. Data file: 1,3,A 1,8,B 1,1,C 1,9,D 2,5,C 2,4,E 2,2,F 2,0,G testbarplot<-read.csv('data1.csv', header=FALSE) barplot(axes=FALSE, ann=FALSE, horiz=TRUE, testbarplot[,2], ylab= 'group', xlab= '(x values)', space=c(1,0,0,0, 1,0,0,0)) text(testbarplot[,2], testbarplot[,1],