Skip to content

Commit 417ad22

Browse files
committed
Remember that biscale is suggested not imported
1 parent 771242a commit 417ad22

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/plot.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1455,6 +1455,7 @@ plotBivariate <- function(sfe, feature1, feature2, colGeometryName = 1L,
14551455
size = 0.5, dim = 4, style = "fisher",
14561456
exprs_values = "logcounts", swap_rownames = NULL,
14571457
show_axes = FALSE, ncol = NULL) {
1458+
check_installed("biscale")
14581459
sample_id <- .check_sample_id(sfe, sample_id, one = FALSE)
14591460
stopifnot(length(feature1) == 1L)
14601461
stopifnot(length(feature2) == 1L)
@@ -1471,7 +1472,7 @@ plotBivariate <- function(sfe, feature1, feature2, colGeometryName = 1L,
14711472
df <- .crop(df, bbox)
14721473
type_df <- .get_generalized_geometry_type(df)
14731474

1474-
df <- df |> bi_class(feature1, feature2, dim = dim, style = style)
1475+
df <- df |> biscale::bi_class(feature1, feature2, dim = dim, style = style)
14751476

14761477
p <- ggplot(df)
14771478
if (grepl("POLYGON", type_df))

0 commit comments

Comments
 (0)