Posts

Showing posts from November, 2025

Module 12. Social Network Analysis

Image
  Once I had the correct Python version installed, the code for building and visualizing the social network worked smoothly. Using NetworkX made it easy to generate the random graph structure, and Plotnine provided a clean, ggplot-style way to visualize the nodes and edges. The final plot rendered clearly, and saving it as a PNG was straightforward! The biggest issue I ran into was with package compatibility. My computer was using Python 3.13, but the Plotnine package is not supported on that version yet. Because of that, the install kept failing and the plotnine module couldn't be imported. I solved the problem by installing Python 3.11, which is fully compatible with Plotnine. After switching to Python 3.11 and reinstalling the required packages, everything ran correctly. Yes — I would definitely use this approach again. NetworkX and Plotnine work well together: NetworkX handles the graph structure, while Plotnine gives me fine control over the aesthetics. For simple social netwo...

Module 11. modern historian in the field of data visualization

Image
  Recreated plot from  E R. Tufte:

Module 10. Time Series and Visualization

Image
  Visualization plays a big role in time series analysis because it helps us actually see how data changes over time instead of just looking at numbers. By plotting data, we can quickly spot patterns, trends, or seasonal behaviors that might not be obvious from raw values alone. For example, a line chart can show whether unemployment rates rise or fall during certain periods, helping us understand the bigger picture. Visuals also make it easier to detect sudden changes or outliers that could affect the analysis. Overall, visualization turns complex time-based data into something more intuitive and meaningful, making it a key first step in analyzing and interpreting time series data. R code for future reference: #Hot Dog eating contest library(readr) library(ggplot2) # Load the dataset hotdogs <- read_csv("http://datasets.flowingdata.com/hot-dog-contest-winners.csv") #view head(hotdogs) # Set color for bars: dark red if new record, grey otherwise colors <- ifelse(hotdogs...