Figure 1: Top and Bottom 5 Genres in the US

Staring off with a overall representation of the top 5 most popular generes and 5 least popular genres across the United State in 2023. Figure 1uses the statestats data set, counts the occurrences of each genre, and then creates a bar plot comparing the top 5 and bottom 5 genres.

Figure 2: Average Rating and Number of Reads across the US

This figure uses the filteredtopbook23 dataset to create a scatter plot comparing the average rating and the number of reads for the top 20 books in 2023. This graph gives insight into the relationship between the number of individuals who have read a book in relation to the average rating of that same book.

Figure 3: Shiny A

Shiny applications not supported in static R Markdown documents

This part of the code creates a Shiny app with an interactive scatter plot. Users can select the number of top books to display, the variables for the X and Y axes, and update the plot accordingly. The plot will generate a scatterplot of the various X and Y variables, and add a line of best fit.

Figure 5 : Top Authors in My Library

Looking at my personal library of 2023. This plot showcases the top 10 authors based on the number of books they have written of which I have read. The vertical bar chart reveals the number of books each author has authored, with the authors sorted in descending order. The chart provides a clear visual representation of the prolific authors in the dataset.

Figure 6: Bottom 10 Authors in my Library

bottom_authors <- mybooks %>% 
  group_by(Author) %>% 
  summarise(Total_Books = n()) %>% 
  arrange(Total_Books) %>%  
  slice_head(n = 10)

bottomauthorsplot <- ggplot(bottom_authors, aes(x = reorder(Author, -Total_Books), y = Total_Books)) +
  geom_bar(stat = "identity", fill = "#7eb0d5", width = 0.7) + 
  geom_text(aes(label = Total_Books), vjust = -0.5, size = 3) +
  labs(title = "Bottom 10 Authors by Number of Books",
       x = "Author",
       y = "Number of Books") +
  scale_x_discrete(labels = label_wrap(10)) + 
  theme_minimal() + 
  theme(axis.text.x = element_text(hjust = 0.5),
        plot.title = element_text(size = 16, face = "bold", hjust = 0.5),
        panel.grid.major.y = element_line(color = "gray", linetype = "dashed"), 
        panel.grid.major.x = element_blank(),  
        panel.grid.minor.x = element_blank())
bottomauthorsplot

Looking at the other end, this plot showcases the bottom 10 authors based on the number of books they have written. The vertical bar chart reveals the number of books each author has authored, with the authors sorted in descending order. The chart provides a clear visual that there is quite a few authors that I have not read more than one book from.

Figure 7: Avg. Rating vs Number of Pages in my Libray

This scatter plot explores the relationship between the average rating of books I read and the number of pages they contain. Each point on the plot represents a book, with the x-axis indicating the average rating and the y-axis indicating the number of pages. The color of the points represents the original publication year, adding dimension to the visualization.

Figure 8: Rating Overtime in my Library

This animated plot dynamically illustrates how the average rating of books changes for books basaed on their original Publication Year. The x-axis represents the publication years, the y-axis represents the average rating, and the color of the markers indicates the total number of pages included per year. The animation progresses through publication years, providing a temporal perspective on how average ratings and total pages evolve over time

Figure 9: Author vs Average Rating in my Library

This scatter plot focuses on the relationship between the number of pages and the average rating of books, explicitly highlighting the contribution of each data point to the overall narrative. Each point represents a book based on its number of pages and average rating. The size of the markers corresponds to the number of pages, and hovering over a point reveals additional details such as the title, author, binding, and original publication year.