Skip to content

Commit 134b53b

Browse files
committed
Remove lines from continuous data
1 parent 2002ac3 commit 134b53b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

R/splnr_plot.R

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,10 @@ splnr_plot <- function(df,
155155
} else if (is_continuous) {
156156

157157
gg <- gg +
158-
ggplot2::geom_sf(data = df, ggplot2::aes(fill = .data[[col_names]]), colour = "grey80", linewidth = 0.01) +
159-
ggplot2::scale_fill_viridis_c(name = legend_title) +
160-
ggplot2::guides(fill = ggplot2::guide_colourbar(order = 1))
158+
ggplot2::geom_sf(data = df, ggplot2::aes(fill = .data[[col_names]], colour = .data[[col_names]])) +
159+
ggplot2::scale_fill_viridis_c(name = legend_title, aesthetics = c("colour", "fill")) +
160+
ggplot2::guides(fill = ggplot2::guide_colourbar(order = 1),
161+
colour = "none")
161162

162163
} else if (is.null(col_names)){ # No column to plot by
163164

0 commit comments

Comments
 (0)