[R] barplot x axis labels

About this list Date view Thread view Subject view Author view Attachment view

From: Andrew Perrin (clists@perrin.socsci.unc.edu)
Date: Wed 14 May 2003 - 03:20:59 EST


Message-id: <Pine.LNX.4.53.0305131319090.4721@perrin.socsci.unc.edu>

I know this has got to be easy, but can't figure it out.

I've got a data frame that includes several numeric indices and a date for
each of 1100 records. I'd like to plot a barplot of the mean of each of
these indices by date. I've managed to do this:

> barplot(tapply(first.pro.auth.sum, dates(date), mean))

but even though I use the dates(date) function, the x axis displays
numeric labels, not dates. I'd like it to display the dates. Any advice?

Thanks.

----------------------------------------------------------------------
Andrew J Perrin - http://www.unc.edu/~aperrin
Assistant Professor of Sociology, U of North Carolina, Chapel Hill
clists@perrin.socsci.unc.edu * andrew_perrin (at) unc.edu

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Tue 01 Jul 2003 - 09:11:49 EST