Skip to content

Commit 0545771

Browse files
committed
fix #6
1 parent 2c6312e commit 0545771

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

vignettes/SpatialData.plot.Rmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,17 +176,17 @@ pa <- unzip_spd_demo(
176176

177177
There are only `r length(SpatialData::shape(x, "cells"))` cells, but
178178
`r format(length(SpatialData::point(x, "single_molecule")), big.mark=",")`
179-
molecules, so that we downsample a random subset of 2,000 for visualization:
179+
molecules, so that we downsample a random subset of 1,000 for visualization:
180180

181181
```{r merfish-plot}
182-
# downsample 2,000 points
182+
# downsample 1,000 points
183183
n <- length(p <- point(x))
184184
q <- p[sample(n, 1e3)]
185-
(point(x, "2k") <- q)
185+
(point(x, "1k") <- q)
186186
# layered visualization
187187
plotSpatialData() +
188188
plotImage(x) +
189-
plotPoint(x, i="2k", c="cell_type", s=0.2) +
189+
plotPoint(x, i="1k", c="cell_type", s=0.2) +
190190
new_scale_color() +
191191
plotShape(x, i="anatomical") +
192192
scale_color_manual(values=hcl.colors(6, "Spectral"))

0 commit comments

Comments
 (0)