ggplot2 demo
✓ Published0🌍 Public
Aaaizemberg
Last edited Sep 20, 2018
Created on Sep 20, 2018
This example demonstrates how to explore Titanic passenger survival rates using the R package ggplot2. It visualizes categorical variables with bar charts and facets, showing survival counts segmented by gender, ticket class, and their combination, while also displaying continuous age distributions through histograms, box plots, and density plots. The code loads the titanic.csv dataset from a GitHub repository and applies theme_bw() for clean styling, using functions like geom_bar(), geom_histogram(), geom_boxplot(), and geom_density() with facet_wrap() to enable multi-dimensional data drill-down.
AI-generated description