diff --git a/ironwood_plots.R b/ironwood_plots.R index 3e27388..1fd8985 100644 --- a/ironwood_plots.R +++ b/ironwood_plots.R @@ -28,7 +28,7 @@ condition_colors <- c("green", "yellow", "orange", "red", "black") ## # Calculate the percentage of trees in each health condition -percentage <- prop.table(table(df$tree_health_index)) * 100 +percentage <- proportions(table(df$tree_health_index)) * 100 # Now, let's create the bar plot barplot(percentage, names.arg = condition_names,