Skip to content

Commit

Permalink
Update simulated_example.Rmd
Browse files Browse the repository at this point in the history
  • Loading branch information
mkapur-noaa committed Dec 10, 2024
1 parent 4296b99 commit c253860
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions vignettes/simulated_example.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -131,16 +131,13 @@ us <- ne_countries(scale = "medium", returnclass = "sf") %>%
# Perform spatial operation to remove points in the dataframe that overlap with the US polygon
sf_df_clipped <- sf_df[!st_within(sf_df, st_union(us), sparse = FALSE), ]
```

```{r, echo = FALSE}
# Plot the US polygon and the points outside of it using ggplot2
ggplot() +
geom_sf(data = us, fill = NA, color = 'black') +
geom_sf(data = sf_df_clipped, aes(size = length, color =resid), alpha = 0.9) +
geom_sf(data = sf_df_clipped, aes( color =resid, size = length), alpha = 0.9) +
scale_y_continuous(limits = c(50,71)) +
scale_x_continuous(limits = c(-185,-130))+
guides(size = 'none')+
Expand Down

0 comments on commit c253860

Please sign in to comment.