Skip to content

Commit 4969c14

Browse files
authored
Merge branch 'dev' into pre-production
2 parents bf40387 + 18e0b39 commit 4969c14

1 file changed

Lines changed: 7 additions & 18 deletions

File tree

R/plot_thermal_habitat_gridded.R

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -47,24 +47,13 @@ plot_thermal_habitat_gridded <- function(
4747
legendTitle <- unique(fix$Units)
4848

4949
p <- fix |>
50-
ggplot2::ggplot() +
51-
ggplot2::geom_tile(
52-
ggplot2::aes(
53-
x = Longitude,
54-
y = Latitude,
55-
fill = Value,
56-
width = 1 / 12,
57-
height = 1 / 12
58-
),
59-
linewidth = setup$line.size
60-
) +
61-
ggplot2::geom_sf(data = ecodata::coast, size = setup$map.lwd) +
62-
ggplot2::facet_grid(Depth ~ Var) +
63-
ggplot2::scale_fill_viridis_c(legendTitle) +
64-
ggplot2::coord_sf(
65-
xlim = c(setup$xmin, setup$xmax),
66-
ylim = c(setup$ymin, setup$ymax)
67-
) +
50+
ggplot2::ggplot()+
51+
ggplot2::geom_tile(ggplot2::aes(x=Longitude,y = Latitude, fill = Value, width = 1/12, height = 1/12),
52+
linewidth = setup$line.size) +
53+
ggplot2::geom_sf(data=ecodata::coast, size = setup$map.lwd) +
54+
ggplot2::facet_grid(Depth~Var)+
55+
ggplot2::scale_fill_viridis_c(legendTitle)+
56+
ggplot2::coord_sf(xlim = c(setup$xmin,setup$xmax), ylim = c(setup$ymin,setup$ymax)) +
6857
#ggplot2::annotation_map(neus.map,fill = "grey70")+
6958

7059
ggplot2::xlab('') +

0 commit comments

Comments
 (0)