Happy Holidays Data Lovers!

December 25, 2017

(This article was first published on Little Miss Data, and kindly contributed to R-bloggers)


Warmest seasons greetings to all of my fellow data nerds!

Like myself, I know that a lot of you love pretty visualizations.  So, this Christmas I am giving the small gift of a new R package to explore.  I will be providing a more in-depth example in the next few weeks.  In the meantime, below is a teaser. 

Run this code in any R environment, including R Studio and IBM Cloud Data Science Experience.

## A fun plot to say seasons greetings

data2 <- read.table(header=TRUE, text='
 subject Joyeaux Noel freq
                   1   Happy   Holidays   1
                   2   Seasons   Greetings   1

dataframe <- as.data.frame(data2)

alluvial(dataframe[,2:3], freq=dataframe$freq,
         col = ifelse(dataframe$Joyeaux == "Happy", "red", "green"),
         border = ifelse(dataframe$Joyeaux == "Happy", "red", "green"),
         cex = 0.7

To leave a comment for the author, please follow the link and comment on their blog: Little Miss Data.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...

If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Search R-bloggers


Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)