similar to: Need help with barplots

Displaying 20 results from an estimated 1000 matches similar to: "Need help with barplots"

2006 Oct 13
3
Need help with tables
I have a data file with 3 columns and I need to take only 2, how to do that ? [[alternative HTML version deleted]]
2006 Sep 26
3
Need help with boxplots
How to add a mean line in the boxplot keeping the median line ? For example in this: set.seed(1) a <- rnorm(10) b <- rnorm(10) boxplot(a, b) [[alternative HTML version deleted]]
2006 Oct 13
2
Multiple barplots on the same axis
Hi R newbie here :) I need to plot 3 barplots in the same axis, something like | | _ _ _ | | | _ | | _ | | _ | _ | || | _ | || | _ | || | | | || || | | || || | | || || | -+----------------------------------------- | v1 v2 v3 Is there any documentation describing how to achieve that, and
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
2001 Feb 05
1
Bar widths in barplots don't change
Is the width= parameter in barplot() supposed to work? I couldn't get it to work in my plot, and even in the example, data(VADeaths, package = "base") barplot(VADeaths, width=rep(0.1, 4)) the plot looks identical regardless of what I put in for the width. I looked at the source for barplot() and it looks like it SHOULD work (but what do I know). Am I doing something wrong?
2009 Jun 02
5
how to add value on the bar ploted by barplot()
how to add value on the bar ploted by barplot()? and the axis label is too big, anyone know how to change their font , thanks -- Xiaogang Yang Sensorweb Research Laboratory http://sensorweb.vancouver.wsu.edu/ Washington State University Vancouver [[alternative HTML version deleted]]
2009 Feb 09
2
Help on BarPlot
Dear all As a new user of R, can someone please help me with the following I have created a programme to analyse laboratory data and one of the graphs is a bar plot of 'Z' scores. On the bar plot I am using the following line to plot some results barplot (zb[,c("ZBW")], ylim = c(-6,6), names.arg=zb[,c("LabNo")],xlab="Lab Code Number", cex.names = .5 ,
2008 Mar 04
1
Plot with two different coloured regression lines and legend
It is a trivial problem, but in the book I couln`t figure out how to put different colours at different regression lines plot(bif,abund,type="n", xlab= "number_bifurcations", ylab="abundances") sbif<-split(bif,stage) sabund<-split(abund,stage) points(sabund[[2]],sbif[[2]],pch=16, col="red") for(i in 1:2) abline(lm(sabund[[i]]~sbif[[i]])) Thanks in
2005 Jul 04
1
Rotate legends or other approaches to nice legend placement?
I'm sure this general sort of question has been asked many times before - I would _like_ automatic and sensible legend placement in barplots so data is not overwritten... but since there doesn't seem to be one, one of the following would be useful: One approach for this would be to place the legend to the right of the graph, and rotate it by 90 degrees. Is there a sensible way to do
2010 Oct 29
2
wilcox.test; data type conversion?
I'm working on a quick tutorial for my students, and was planning on using Mann-Whitney U as one of the tests. I have the following (fake) data grade <- c("MVG", "VG", "VG", "G", "MVG", "G", "VG", "G", "VG") sex <- c( "male", "male", "female", "male",
2007 Jan 17
2
label option in 'barplot'?
Hello all, When using the 'barplot' function, how would one go about creating labels on the top of the bars corresponding to the actual frequency values (i.e., the height of the bar). For histograms, one can use the 'LABEL=T' parameter to this effect, but it is not available for barplot. Must one manually create such labels for a barplot (perhaps using mtext)? Thanks.
2005 Nov 14
1
bug/feature with barplot?
I have found a bug/feature with barplot that at least to me shows undesireable behaviour. When using barplot and plotting fewer groups/levels/factors(I am unsure what they are called) than the number of colors stated in a col statement, the colors wrap around such that the colors are not fixed to one group. This is mostly problematic when I make R figures using scripts, since I sometimes have
2005 Apr 05
2
cat bailing out in a for loop
Dear All, I am trying to calculate the Hardy-Weinberg Equilibrium p-value for 42 SNPs. I am using the function HWE.exact from the package "genetics". In order not to do a lot of coding "by hand", I have a for loop that goes through each column (each column is one SNP) and gives me the p.value for HWE.exact. Unfortunately some SNP have reached fixation and HWE.exact requires a
2004 Aug 13
1
barplot and names.arg
R-help Is there any option to get closer the x-axis and names.arg from barplot? Thank you Luis Ridao Cruz Fiskiranns??knarstovan N??at??n 1 P.O. Box 3051 FR-110 T??rshavn Faroe Islands Phone: +298 353900 Phone(direct): +298 353912 Mobile: +298 580800 Fax: +298 353901 E-mail: luisr at frs.fo Web: www.frs.fo
2002 Nov 12
4
trouble positioning legends on barplot written to a file
I'm trying to generate some plots for print publication and I'm having trouble getting them the way I want. I get a plot with a legend that overlaps the bars and looks bad. Also, I'm saving this as PDF file (whatever happened to the "png" function to save as PNG format, in r 1.4.1?) I've tried a number of things, which produce a number of questions. 1) it seems that the
2002 Jun 24
1
barplot
Hi, a couple of simple graphics questions: 1. I have a little function that makes bar plots. Now I would like to limit the Y-axis outside this function (that means after calling the barplot() command) depending on the data to be plotted . Does anyone know how to do this ??? 2. When using barplot() and limiting the yAxis, R draws the bars below the x-axis. How can I avoid this problem ??
2004 Nov 24
1
reshaping of data for barplot2
Dear All, I have the following data coming out from s <- with(final, summarize(norm, llist(gtt,fdiab), function(norm) { n <- sum(!is.na(norm)) s <- sum(norm, na.rm=T) binconf(s, n) }, type='matrix') ) ie gtt fdiab norm.norm norm.norm2 norm.norm3 18
2012 May 09
5
Dotchart showing mean and median by group
Given this example mean.values<-colMeans(VADeaths) mean.values<-apply(VADeaths, 2, mean) median.values<-apply(VADeaths, 2, median) dotchart(VADeaths, gdata=mean.values) dotchart(VADeaths, gdata=median.values) is it possible to ?combine? a single dotchart showing both the mean and the median for each single group (with different plotting symbols)? ?is it that possible with the use of
2001 Jan 18
2
dotplot: character size of labels
Dear R users, using dotplot (R1.2.0, WinNT4.0), I am trying to change the character size of the labels of the points: > # example > data(VADeaths) > dotplot(VADeaths, main = "Death Rates in Virginia - 1940") > # I'd like to have smaller character size of the labels (for age and population groups) > ?dotplot > # for argument "cex", this says: