Skip to content

Commit

Permalink
Update plot_paf.R
Browse files Browse the repository at this point in the history
  • Loading branch information
silasprincipe committed May 22, 2024
1 parent a95049c commit 8e155b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions codes/plot_paf.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ summary(funcdiv$DepthRangeDeep)

# Select shallow water species
summary(funcdiv$DepthRangeDeep) # There are 1348 species with NA values
#funcdiv$DepthRangeDeep[is.na(funcdiv$DepthRangeDeep)] <- 0

# Limit to those with maximum depth 200m
sel_species <- funcdiv %>%
Expand Down Expand Up @@ -175,6 +176,8 @@ sites_sst$point_class <- factor(sites_sst$point_class, levels = c("not_risk", "s
# Make plots ----
# Left plot - dots
plot_a <- plot_obj %>%
group_by(higherGeography) %>%
distinct(species, .keep_all = T) %>%
ggplot() +
geom_violinhalf(aes(x = higherGeography, y = q_0.95),
position = position_nudge(x = 0.3)) +
Expand Down

0 comments on commit 8e155b7

Please sign in to comment.