Rows: 63961 Columns: 12
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
chr (2): Site.State, Site.County
dbl (10): Year, Turbine.Capacity, Turbine.Hub_Height, Turbine.Rotor_Diameter...
ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
wind |>head()
# A tibble: 6 × 12
Site.State Site.County Year Turbine.Capacity Turbine.Hub_Height
<chr> <chr> <dbl> <dbl> <dbl>
1 IA Story County 2017 3000 87.5
2 IA Hardin County 2017 3000 87.5
3 IA Story County 2017 3000 87.5
4 IA Story County 2017 3000 87.5
5 IA Story County 2017 3000 87.5
6 IA Story County 2017 3000 87.5
# ℹ 7 more variables: Turbine.Rotor_Diameter <dbl>, Turbine.Swept_Area <dbl>,
# Turbine.Total_Height <dbl>, Project.Capacity <dbl>,
# Project.Number_Turbines <dbl>, Site.Latitude <dbl>, Site.Longitude <dbl>
# Graph 1ggplot(wind_clean, aes(x = Turbine.Capacity)) +geom_histogram(bins =30, fill ="skyblue",color ="black") +labs(title ="Distribution of Turbine Capacity (megawatts)",x ="Capacity (MW)",y ="Number of Turbines" )
# fitler out states with 10 or less and non us stateswind_nonzero <- wind_clean |> (\(df) { counts <-table(df$Site.State) counts <- counts[counts >10] counts <- counts[names(counts) !="PR"]data.frame(Site.State =names(counts), Num_Turbines =as.numeric(counts)) })()# took out CT (Connecticut), DE (Delaware), GU (Guam), NJ (New Jersey), VA (Virginia), and PR (Puerto Rico)# Barchartggplot(wind_nonzero, aes(x = Site.State, y = Num_Turbines)) +geom_bar(stat ="identity", fill ="steelblue") +labs(title ="Number of Turbines by State (States with >0 turbines)",x ="State",y ="Count" ) +theme(axis.text.x =element_text(angle =45, hjust =1))