[R] Plot historical data

Abby Spurdle @purd|e@@ @end|ng |rom gm@||@com
Thu Jun 20 04:35:52 CEST 2019


I'm not sure I understand exactly what you mean.

> I want to EXTRACT FOR ONE HAND A TABLE WITH MEAN BY CENTER, STD DESV.

Do you want a table giving the mean and sd of Cost, grouped by Center?

> I want a plot or smooth plot replicating a gauss line distribution by
> center.

Do you want one plot for each Center, showing the normal distribution of
Cost?
Or you want one plot for each Center, showing a kernel density estimate of
Cost?
Or you want one plot for each Center, showing the ECDF of Cost?
All are possible.

> and to save each plot in a jpeg file

I recommend PDF format.
(Vector graphics tend to have higher quality than raster graphics).
Are you sure you want JPEG format?

> How should I compare distribution empirical line of center M with C?

Do you want to compare the ECDF of Cost, for Center M and Center C?
If so, you can produce one plot, with both distributions.
Or you can plot each next to each other?
The first option is probably better, but you need to be careful with the
horizontal axis.

However, I'm wondering if you want a kernel density estimate?


Abs

	[[alternative HTML version deleted]]



More information about the R-help mailing list