Skip to content

Commit

Permalink
Fix issue with grid_preview
Browse files Browse the repository at this point in the history
  • Loading branch information
hafen committed Nov 29, 2023
1 parent dd1fe98 commit 29f5606
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/facet_geo.R
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ grid_preview <- function(x, label = NULL, label_raw = NULL) {
x$txt <- x[[label]]
}

p <- ggplot2::ggplot(x, ggplot2::aes(.data$col, .data$row, label = "txt")) +
p <- ggplot2::ggplot(x, ggplot2::aes(.data$col, .data$row, label = .data$txt)) +
ggplot2::geom_rect(
xmin = as.numeric(x$col) - 0.5, xmax = as.numeric(x$col) + 0.5,
ymin = as.numeric(x$row) - 0.5, ymax = as.numeric(x$row) + 0.5,
Expand Down

0 comments on commit 29f5606

Please sign in to comment.