Portfolio Project 4
Introduction
In my final portfolio project, I have chosen to expand upon my first portfolio project by making it interactive. I have used the Plotly package to allow my viewers to interact with the Pokemon dataset. Through my code below, viewers can reveal additional details in the data beyond what my earlier fixed graphs can show. By incorporating both interactive graphs and datatables, viewers can still view overall trands, while also examining individual observations.
Question 1 from Portfolio 1: How might a Pokemon’s attack and defense stats vary based on their primary type?
Similar to Q1 in my first portfolio project, I aimed to explore the relationship between combat characteristics. The below graph compares attack and defense stats across different primary types. We can explore whether certain primary types (fire, water, steel, etc.) are differentially correlated with attack and defense characteristics. Each point represent a different individual Pokemon. By incorporating interactivity, viewers can delve into examining specific Pokemon individuals that might strongly align with or differ from each line of best fit.
Question 2 from Portfolio 1: How does a Pokemon’s average speed vary by generation and primary type?
Branching off of my first analysis in Question 1, this second data visualization aims to analyse Pokemon speed, another crucial aspect of combat. In contrast to the above scatterplots that highlight individual Pokemon, this graph below aggregates the data to compare average Pokemon speed across both generation and primary type. This grouped bar chart allows us to compare speed within each primary type, while also telling apart generations through color-coding. The interactivity adds a means through which viewers can hover over each bar, seeing exact average speeds. This allows the viewer to make quicker comparisons between primary types and generations.
Interactive Element #3: Data Table
As a third element of interactivity, I have created an interactive data table below for the Pokemon dataset used in the analyses in this project. This table allows viewers to sort, filter, and search particular Pokemon observations/individuals. An interactive datatable is distinct from the above graphs because it doesn’t just summarize patterns; it lets the viewer closely examine individual Pokemon and their characteristics!