LIS 4370: Module # 9 Visualization in R
Module # 9 Visualization in R
The dataset I chose to present for this assignment was based off of the total amount of Florida Voting Records by county, saved as "Florida.csv".
Base R Graphics (Bar plot):
Without the need for any additional packages, this kind of plot may be made with simple R functions. It can be easily created and is appropriate for basic visualizations. The graphic makes it simple to compare the total votes across different counties by displaying the votes by county using bars. But in comparison to other packages, there aren't as many choices for customization.
Lattice Package (Dot plot):
Plotting may be done using Lattice thanks to its high-level interface. In contrast to bars, which can be more difficult to read when dealing with a large number of categories, the dot plot displays the distribution of total votes by county using dots. Compared to base R graphics, Lattice provides greater customization options for the plot's design and arrangement.
ggplot2 Package (Box plot):
Because of its language of graphics approach, ggplot2 is a well-liked and robust software for making graphics in R. Using the median, quartiles, and any outliers displayed, the box plot illustrates the distribution of total votes by county. With ggplot2, users may build highly customizable, publication-quality plots thanks to its vast customization possibilities. It has a tiered approach, which makes it simple to enhance interpretation by adding more layers to the story.
In terms of user-friendliness, personalization choices, and plotting possibilities, each package has advantages and disadvantages that vary. Advanced customization is absent from Base R graphics, which are straightforward and simple to utilize. With lattice, you may plot higher-level functions with more flexibility. For making intricate and visually appealing plots, ggplot2 is the best solution due to its wide range of customization options. The particular needs and tastes of the user determine which package to select.
Comments
Post a Comment