Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
GohtaAihara committed May 21, 2024
1 parent 1dd5a43 commit b8cbc8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions vignettes/formatting-SpatialExperiment-for-SEraster.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ In the original work, [Moffitt J. and Bambah-Mukku D. et al. (2018), "Molecular,
library(SpatialExperiment)
library(Matrix)
library(ggplot2)
library(ggrastr)
```

## Load the subsetted dataset
Expand Down Expand Up @@ -89,7 +88,7 @@ df_plt <- data.frame(pos, total_gexp = colSums(mat))
ggplot(df_plt, aes(x = x, y = y, color = total_gexp)) +
coord_fixed() +
rasterise(geom_point(size = 1.5, stroke = 0)) +
geom_point(size = 1.5, stroke = 0) +
scale_color_viridis_c(name = "total gene expression") +
theme_bw() +
theme(panel.grid = element_blank(),
Expand All @@ -105,7 +104,7 @@ df_plt <- data.frame(pos, celltype = meta$celltype)
ggplot(df_plt, aes(x = x, y = y, color = celltype)) +
coord_fixed() +
rasterise(geom_point(size = 1.5, stroke = 0)) +
geom_point(size = 1.5, stroke = 0) +
theme_bw() +
theme(panel.grid = element_blank(),
axis.title = element_blank(),
Expand Down
3 changes: 1 addition & 2 deletions vignettes/getting-started-with-SEraster.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ library(SpatialExperiment)
library(nnSVG)
library(CooccurrenceAffinity)
library(ggplot2)
library(ggrastr)
```

## Load example dataset
Expand All @@ -64,7 +63,7 @@ df <- data.frame(spatialCoords(merfish_mousePOA), celltype = colData(merfish_mou
ggplot(df, aes(x = x, y = y, col = celltype)) +
coord_fixed() +
rasterise(geom_point(size = 1.5)) +
geom_point(size = 1.5) +
guides(col = guide_legend(override.aes = list(size = 3))) +
labs(x = "x (μm)",
y = "y (μm)",
Expand Down

0 comments on commit b8cbc8b

Please sign in to comment.