Skip to content

Commit

Permalink
switch saving method
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewwbutler committed Aug 10, 2021
1 parent 6c21601 commit 235113a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vignettes/spatial_vignette.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,9 @@ SpatialFeaturePlot(brain, features = c("Hpca", "Ttr"))
library(ggplot2)
plot <- SpatialFeaturePlot(brain, features = c("Ttr")) +
theme(legend.text = element_text(size = 0), legend.title = element_text(size = 20), legend.key.size = unit(1, "cm"))
ggsave(filename = "../output/images/spatial_vignette_ttr.jpg", height = 7, width = 12, plot = plot, quality = 50)
jpeg(filename = "../output/images/spatial_vignette_ttr.jpg", height = 700, width = 1200, quality = 50)
print(plot)
dev.off()
```

The default parameters in Seurat emphasize the visualization of molecular data. However, you can also adjust the size of the spots (and their transparency) to improve the visualization of the histology image, by changing the following parameters:
Expand Down

0 comments on commit 235113a

Please sign in to comment.