rename proportions

This commit is contained in:
aaron
2024-03-12 13:35:18 +01:00
parent 27f26e28ce
commit 1163836de6

View File

@@ -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,