Re: [R] Print lattice output to table?

2010-01-28 Thread GL

That works great. Thanks!
-- 
View this message in context: 
http://n4.nabble.com/Print-lattice-output-to-table-tp1375040p1380862.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Print lattice output to table?

2010-01-28 Thread Deepayan Sarkar
On Thu, Jan 28, 2010 at 6:25 AM, GL  wrote:
>
> I have beautiful box and whisker charts formatted with lattice, which is
> obviously calculating summary statistics internally in order to draw the
> charts. Is there a way to dump the associated summary tables that are being
> used to generate the charts? Realize I could use tapply or such to get
> something similar, but I have all the groupings and such already configured
> to generate the charts. Simply want to dump those values to a table so that
> I don't have to interpolate where the 75th percentile is on a visual chart.
> Appreciate any thoughts..

You can customize the function that computes the summary statistics,
and that seems like the only reasonable entry-point for you. A simple
example:

bwplot(voice.part ~ height, data = singer,
   stats = function(...) {
   ans <- boxplot.stats(...)
   str(ans)
   ans
   })

You will need to figure out how you will "dump" the parts you want.

-Deepayan

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Print lattice output to table?

2010-01-28 Thread GL

I have beautiful box and whisker charts formatted with lattice, which is
obviously calculating summary statistics internally in order to draw the
charts. Is there a way to dump the associated summary tables that are being
used to generate the charts? Realize I could use tapply or such to get
something similar, but I have all the groupings and such already configured
to generate the charts. Simply want to dump those values to a table so that
I don't have to interpolate where the 75th percentile is on a visual chart.
Appreciate any thoughts..
-- 
View this message in context: 
http://n4.nabble.com/Print-lattice-output-to-table-tp1375040p1375040.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.