1.

List down at least 5 libraries in R that can be used for data visualization. Explain three of them briefly.

Answer»

Following “libraries/packages in R” are typically used for data visualization purposes and also quite useful with their usage and features.

ggplot2, LATTICE, Leaflet, Highcharter, RColorBrewer, plotly, sunburstR, RGL, dygraphs

Out of the above “ggplot2” is extremely popular and some of the sources indicate that this is one of the highest downloaded packages by users for the purpose of data visualization/graphics using R packages.

  • ggplot2 – is an implementation of the grammar of graphics and can be used for custom plots using R. While it is simple to CREATE standard plots or charts in R, ggplot2 is used to build “custom” plots in a simple manner which are difficult to create without the usage of this library. We can use this library to build plots in a systematic fashion – i.e. create our plot with axes, then go on to add POINTS, then go on to add a line, then add some statistical inference metric such as confidence interval, then highlight a regression curve with some mathematical equation in the background and so on.
  • RColorBrewer – is a library on COLOUR brewer palettes. It provides colour schemes for maps. It can be used to manipulate colours in plots/charts, graphs, maps etc. This is designed by Cynthia Brewer. It can be used along with “plotly” package as well.
  • Leaflet – is basically used for maps. We can create interactive maps leveraging this. The interface for a leaflet in R is using the “htmlwidgets” framework. Hence it can be managed in markdown documents easily and also in shiny UI applications.


Discussion

No Comment Found