The objective of this assignment is to replicate the instructor’s visualizations accurately. Viz 1 uses plotly while Viz 2-4 use highcharter. Each task is designed to optimize certain features of the plot, intentionally leaving some aesthetics imperfect to highlight specific functionalities.

Viz 1

The first viz relies on data extracted from the mpg dataset within the ggplot2 library.

Viz 2

This visualization uses a subset of the mpg data, filtered to exclude observations with five cylinders or belonging to the 2seater class.

Viz 3

This visualization is based on a randomly selected subset of diamonds dataset from ggplot2:

Viz 4

Finally, viz 4 utilizes the economics dataset from ggplot2: