Easy and Beautiful Plotting

I just read an article from an R blog called Revolutions, in which the author reviews a book called “R in Action’.  What I like best in this blog post is the example he gives of a really nice looking graph that doesn’t take very much coding to create:

 

6a010534b1db25970b0162fe0e3f7f970d-pi1

Elegant, informative, and here is the code he tells us is necessary to create it (bearing in mind the data is readily available from the “car” library in R):

 

 

Scatterplot_with_grouped_regression_lines

For this kind of graphing, and this little code, I would definitely want to graph in R.

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s