Skip to content

Commit

Permalink
implement one part of #288; turn the plot for soap film smooths into …
Browse files Browse the repository at this point in the history
…an isotropic one
  • Loading branch information
gavinsimpson committed Jun 28, 2024
1 parent a0274c1 commit 4ce504b
Show file tree
Hide file tree
Showing 4 changed files with 540 additions and 520 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ importFrom(ggokabeito,scale_colour_okabe_ito)
importFrom(ggokabeito,scale_fill_okabe_ito)
importFrom(ggplot2,aes)
importFrom(ggplot2,coord_equal)
importFrom(ggplot2,coord_fixed)
importFrom(ggplot2,coord_sf)
importFrom(ggplot2,expand_limits)
importFrom(ggplot2,facet_grid)
Expand Down
5 changes: 3 additions & 2 deletions R/smooth-estimates.R
Original file line number Diff line number Diff line change
Expand Up @@ -2545,7 +2545,7 @@

#' @importFrom ggplot2 ggplot geom_point geom_raster geom_contour
#' expand_limits labs guides guide_colourbar theme guide_axis geom_line
#' geom_path scale_fill_distiller
#' geom_path scale_fill_distiller coord_fixed
#' @importFrom grid unit
#' @importFrom rlang .data
#' @keywords internal
Expand Down Expand Up @@ -2601,7 +2601,8 @@
x = .data[[variables[1]]],
y = .data[[variables[2]]]
)) +
geom_raster(mapping = aes(fill = .data[[plot_var]]))
geom_raster(mapping = aes(fill = .data[[plot_var]])) +
coord_fixed(ratio = 1)

if (isTRUE(contour)) {
plt <- plt + geom_contour(
Expand Down
Loading

0 comments on commit 4ce504b

Please sign in to comment.