How to visualize table plot in R using the tabplot library

in visualization •  7 years ago 

A table plot is a simple thought powerful data visualization method that gives a quick summary of the variables (columns) of a table.

In this example, we visualize a table of data from a census taking place in a European country. The tool used to visualize it is an R package called tabplot.

The dataset is huge but we choose to visualize only some columns of such table. The columns we visualize are: Region name and the following three variables that are P1, P2, P3, P4, P5. Such variables correspond to P1 = total population, P2 = Male , P3 = Female, P4 = Married, P5= Single.
So given this dataset it is possible to have a quick summary of each column in a visual way. For example, it is possible to visualize it following these steps that are

a) loading the data and the R library

b) visualizing the Table plot

ds <- read.csv("censusdata.csv", sep = "\t", TRUE)

install.packages("tabplot")

library(tabplot)

tableplot(ds, select = c(city,kind, age, size))

And this is the result.

tabplot.PNG

The advantage of such data visualization technique is that it gives the possibility to the analyst to note immediately for every variable i.e. column how it is related to the other variables. For example a region there can be more people married that in other regions.

If you liked this guide show us your support. Comments and suggestions on how to improve our work are also welcome. And stay tuned, more guides on data visualization are coming.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Nice work!

The @OriginalWorks bot has determined this post by @datatreemap to be original material and upvoted it!

ezgif.com-resize.gif

To call @OriginalWorks, simply reply to any post with @originalworks or !originalworks in your message!

To enter this post into the daily RESTEEM contest, upvote this comment! The user with the most upvotes on their @OriginalWorks comment will win!

For more information, Click Here!
Special thanks to @reggaemuffin for being a supporter! Vote him as a witness to help make Steemit a better place!