[R] Suggestions ?!?!
ggrothendieck at myway.com
Tue Feb 24 17:01:49 CET 2004
For the question at the end, try barplot with the
Date: Tue, 24 Feb 2004 09:30:21 -0500
From: ivo welch <ivo.welch at yale.edu>
To: <r-help at stat.math.ethz.ch>
Cc: <r-help-owner at stat.math.ethz.ch>,ivo welch <ivo.welch at yale.edu>
Subject: [R] Suggestions ?!?!
* I have some suggestion, the first of which is about suggestions, R
tells me who the contributors() are, but this should also tell me where
I should email suggestions to. Is it this mailing address/list? a
repository of suggestions? an individual?
this came up because i wanted to suggest enhancements:
* the first is for the summary() method for plain data frames. it would
seem to me that the number of "NA" observations should be printed as an
integer, not necessarily in scientific notation. I have also yet to
determine when summary() likes to give means and when it does not.
(maybe it was an older version that sometimes did not give means).
summary does not seem to have optional parameters to specify what
statistics I would like. this could be useful, too.
* another small enhancement: there are four elementary data frame
operations that bedevil novices, so they really should have named
delrow( dataframe d, index=45);
insrow( dataframe d, (row)vector v);
delcol( dataframe d, "name");
inscol( dataframe d, (col)vector v);
Even a simple alias would do (maybe named row.delete, column.delete). I
looked at my R "bible" (venables&ripley), too, but here too it is not as
clear as it needs to be. yes, these operations are programmable, but it
ain't as obvious as it should be for beginners. these are elementary.
* Finally, a more complex question: I have a historical rate of stock
return series (yes, I teach finance). I would like to make a ts plot on
the left (plot(date,returns,type="h")), and a plot(density(returns)) on
the right. works nicely with par(mfrow=c(1,2)), but it would be even
nicer if I could rotate the density plot 90 degrees, so that it is more
apparent that the density plot is an aggregation of the points at the
same y coordinates. (if need be, a histogram could replace the density
plot.) Is it possible to rotate an entire subpanel figure. if there
was a "horizontal" parameter to ps.options for plot(), it would do the
trick, but this does not work. So, this may be a suggestion, too.
More information about the R-help