3 / 1 5 / 2 0 1 2 1
Introduction to
CAS RPM Seminar March 19, 2012 Steve Berman, FCAS, MAAA Jim Guszcza, FCAS, MAAA
R – Graphics
Charts Scatterplots Histograms Boxplots Other visualizations
Introduction to CAS RPM Seminar Steve Berman, FCAS, MAAA March 19, - - PDF document
3 / 1 5 / 2 0 1 2 Introduction to CAS RPM Seminar Steve Berman, FCAS, MAAA March 19, 2012 Jim Guszcza, FCAS, MAAA R Graphics Charts Scatterplots Histograms Boxplots Other visualizations 1 3 / 1 5 / 2 0 1 2 R Graphics R offers
CAS RPM Seminar March 19, 2012 Steve Berman, FCAS, MAAA Jim Guszcza, FCAS, MAAA
Charts Scatterplots Histograms Boxplots Other visualizations
2
Hint: you can alw ays click “ctrl-l” to clear the screen
3
– Chart type (type) – Titles (main, sub) – Axes (axis) – Legends (legend) – Colors (col) – Sizes (lwd, cex) – Data labels (text, mtext)
Hint: you can alw ays click “ctrl-l” to clear the screen
4
Hint: you can alw ays click “ctrl-l” to clear the screen
5
Hint: you can alw ays click “ctrl-l” to clear the screen
6
– hist – truehist
Hint: you can alw ays click “ctrl-l” to clear the screen
7
Hint: you can alw ays click “ctrl-l” to clear the screen
8
Hint: you can alw ays click “ctrl-l” to clear the screen
9
– Pricing changes in January – mark all January and February dots in a different color – Change the dots so that the size of the dots is proportional to sales (under $1M, $1M-2M, $2M+ ) (size of dots using cex)
Hint: you can alw ays click “ctrl-l” to clear the screen
10
– One axis is empirical distribution – One axis is theoretical distribution – This example uses plot and abline
Hint: you can alw ays click “ctrl-l” to clear the screen
11
– pairs – heatmap
Hint: you can alw ays click “ctrl-l” to clear the screen
ee.risk patient.risk payer.consol clinical.consol cost.control
quality.init innovation
standardization standardization community.activity innovation quality.init
cost.control clinical.consol payer.consol patient.risk ee.risk
12
– lattice – ggplot – maps – VMRLGen – Many more…
Hint: you can alw ays click “ctrl-l” to clear the screen