Skip to content

Commit

Permalink
Use colors for capture areas that match the figures we'll use in the …
Browse files Browse the repository at this point in the history
…manuscript. Closes #3
  • Loading branch information
Nick-Eagles committed Jul 26, 2024
1 parent c243850 commit d922eb1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions vignettes/visiumStitched.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,10 @@ the overlap among capture areas:

```{r "array_plot_orig"}
## Plot positions of default array coordinates, before overwriting with more
## meaningful values
## meaningful values. Use custom colors for each capture area
ca_colors = c("#A33B20", "#e7bb41", "#3d3b8e")
names(ca_colors) = c("V13B23-283_C1", "V13B23-283_D1", "V13B23-283_A1")
colData(spe) |>
as_tibble() |>
filter(in_tissue) |>
Expand All @@ -324,7 +327,7 @@ colData(spe) |>
)
) +
geom_point(alpha = 0.3) +
coord_fixed()
scale_color_manual(values = ca_colors)
```

Let's contrast this with the array coordinates recomputed by `visiumStitched`.
Expand All @@ -345,7 +348,7 @@ colData(spe) |>
)
) +
geom_point(alpha = 0.3) +
coord_fixed()
scale_color_manual(values = ca_colors)
```

An important downstream application of these array coordinates, is that it enables
Expand Down

0 comments on commit d922eb1

Please sign in to comment.