search for: barplotting

Displaying 20 results from an estimated 1225 matches for "barplotting".

2012 Mar 12
2
barplot and NA
Am I wrong that barplot is supposed to just skip NAs, and continue with the rest of the data in a matrix column? That's how I read various posts on the subject. But that's not what happens for me with R64.app (on a Mac, obviously). For example: d0 <- as.matrix(c(2,3,4)) d1 <- as.matrix(c(2,3,NA)) d2 <- as.matrix(c(2,NA,4)) d3 <- as.matrix(c(NA,3,4)) barplot(d0) barplot(d1)
2012 Aug 26
3
Aligning barplot
All, Consider: BagA <- c(-1000,10,10,10,10,10,10, 10,20,20,20,20,20,20,30, 30,40,40,50,60) BagB <- c(10,20,30,30,40,40,50,50, 50,50,50,50,60,60,60,60, 60,60,60,1000) layout(c(2,1)) barplot(table(BagB)) barplot(table(BagA)) At this point, I'd like to arrange the plots so that the 10-bars are aligned, the 20-bars are aligned, etc. So, I started
2017 Jan 27
4
Suggestion: barplot function
Hello developers folks! First, congratulations for the wonderful work with R. For science, barplots with error bars are very important. We were wondering that is so easy to use the boxplot function: boxplot(Spores~treatment, col=treatment_colors) But there is no such function for barplots with standard deviation or standard error. It becomes a "journey" to plot a simple graph (e.g.
2006 Dec 01
3
Make many barplot into one plot
Dear all, ## I have 4 tables like this: satu <- array(c(5,15,20,68,29,54,84,119), dim=c(2,4), dimnames=list(c("Negative", "Positive"), c("Black", "Brown", "Red", "Blond"))) dua <- array(c(50,105,30,8,29,25,84,9), dim=c(2,4), dimnames=list(c("Negative", "Positive"),
2011 Apr 04
2
gap.barplot doesn't support data arrays?
I am trying to make a barplot with a broken axis using gap.barplot (in the indispensable plotrix package). This works well when the data is a vector: > twogrp<-c(rnorm(10)+4,rnorm(10)+20) > gap.barplot(twogrp,gap=c(8,16),xlab="Index",ytics=c(3,6,17,20),ylab="Group values",main="Barplot with gap") But when the data is an array (for a bar plot with multiple
2008 Dec 06
2
Barplot label
Dear all, I am trying to make barplot from matrix with "beside=FALSE". I have 165 labels in my bar plot. When i plot the label horizontally below the barplot, then all labels are not appear in the plot due to lack of space. I used the following function: barplot(t(bar), main="Barplot based on LCMS", ylab="RF membership Probability",   
2011 Jul 14
2
Problem with x labels of barplot
Hello everyone, i am currently creating a barplot. This barplot takes a vector of ~200 datapoints. Each datapoint represents one bar. http://img96.imageshack.us/i/human1w.png/ (Ok as you see, it is not only one barplot, but a series of barplots). Now, these barplots represent a human chromosome. This means they are ordered. For instance bar number 50, means position 50 in the human chromosome.
2011 Sep 12
6
barplot in hexagram layout
dev.new(width=6, height=1.5,mar=c(0,0,0,0)) par(mfrow=c(1,1),mar=c(.5, .5, 1.5, .5), oma=c(.4, 0,.5, 0)) barplot(c(1,1,1,1,1,1),col=c("blue","purple","red","green","orange","yellow"), axes = FALSE) I have a barplot that returns six colors in a line. I would like to get the same six color blocks in a hexagram layout (if it were a clock,
2007 Mar 13
3
Adding bars to the right of existing ones using barplot
I'm trying to create a barplot that has two sets of data next to each other. I'm using barplot with the add=TRUE option, but this simply adds the second dataset on top of the first, obscuring it. How do I add the new data to the right on the existing barplot so that both sets are visible? I've been playing with all sorts of option and reading the list archives with no
2006 Oct 17
3
barplot question
i'm doing a bar plot and there are 16 column variables. is there a way to make the variable names go down instead of across when you do the barplot ? because the names are so long, the barplot just shows 3 names and leaves the rest out. if i could rotate the names 90 degrees, it would probably fit a lot more. or maybe i can use space to make the horizontal width longer ? I looed up ?barlot but
2011 Jan 25
2
barplot with varaible-width bars
I would like to produce a bar plot with varying-width bars. Here is an example to illustrate: ww <- c(417,153,0.0216,0.0065,556,256,0.0162,0.0117, + 726,379,0.0358,0.0501,786,502,0.0496,0.0837, + 892,591,0.0785,0.0795) yy<-t(t(array(ww,c(2,10)))) barplot(yy[,2*1:5],las=1,space=c(.1,.5),beside=T) produces a barplot of 5 pairs of bars that are of equal width
2006 Feb 22
3
2 barplots in the same graph
Hello, I have a very simple question about "2 barplots in the same graph". It seems quite easy, but I searched google for long time, haven't find solution. For example, I want one graph like: x1=seq(0,2,by=0.3) x2=seq(3,0,by=-0.1) barplot(x1,col="red") barplot(x2,col="green") It means if it's on the same graph, some bars are overlaped. So if the bars are
2007 Nov 04
2
Fw: Creating a barplot--advice needed
Subject: Creating a barplot--advice needed > Advice needed: I am preparing a computer program to do a barchart. Advice > needed: Should I learn the lattice package, or try to? As a > non-statistician, much of the terminology is unfamiliar to me. "grouping > variable," "object of class trellis," etc. Or, is there a more easily > learned way to do it? It is a
2009 Mar 03
2
preparing data for barplot()
What is the best way to produce a barplot from my data? I would like the barplot to show each person with the values stacked val1+val2+val3, so there is one bar for each person When I use barplot(data.matrix(realdata)), it shows one bar for each value instead. To post here, I created an artificical data set, but it works fine. fakedata <- as.data.frame(list(LETTERS[1:3])) colnames(fakedata)
2003 Nov 13
5
xlims of barplot
I would like to create a family of barplots with the same xlimits. Is there a way to "read" the xlimits from the first graph so I can apply it to the subsequent ones? I have tried just taking the min and max of the x data and the plot doesn't show. cheers [[alternative HTML version deleted]]
2003 Feb 05
4
barplot default colors
Dear R-help, Can some one explain why barplot() uses changing colors in the bars by default? I should think that most of the time when people draw barplots, they want the bars to be in the same color. (At least that's what I'd expect. The first time I used barplot() in R, I was shocked to see the colors.) As an example, one example in ?layout draws a scatterplot with histograms drawn
2003 Feb 05
4
barplot default colors
Dear R-help, Can some one explain why barplot() uses changing colors in the bars by default? I should think that most of the time when people draw barplots, they want the bars to be in the same color. (At least that's what I'd expect. The first time I used barplot() in R, I was shocked to see the colors.) As an example, one example in ?layout draws a scatterplot with histograms drawn
2004 Dec 06
3
barplot() options for intervals on axes
Hello, I am a beginner with R. I read many tutorials and the FAQ but I cannot solve my problem. I use barplot() to view my graph. I try to get more interval marks on y axis. I wasn't able to find options in 'help(barplot)' or 'help(par)' to do this with barplot(). I seek for another option to print y values on my bars like on the graph of the R homepage:
2006 Jan 05
4
ylim problem in barplot
R Version 2.2.0 Platform: Windows When I use barplot but select a ylim value greater than zero, the graph is distorted. The bars extend below the bottom of the graph. For instance the command produces a problematic graph. barplot(c(200,300,250,350),ylim=c(150,400)) Any help would be appreciated. Paul [[alternative HTML version deleted]]
2007 Sep 12
2
barplot border width
I need to increase the width of the border in a barplot, i checked both barplot, and barplot2, but cant find how to do it. how can I do? thank you john [[alternative HTML version deleted]]