Skip to content

Commit

Permalink
fix plot_STclusters
Browse files Browse the repository at this point in the history
  • Loading branch information
oospina committed Aug 4, 2021
1 parent c1f068c commit abe703d
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
Binary file modified .DS_Store
Binary file not shown.
3 changes: 2 additions & 1 deletion R/plot_STclusters.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
#
plot_STclusters <- function(x, plot_who=NULL, purity=F, color_pal='light', visium=T){

require(ggplot2)
require('ggplot2')
require('magrittr')

if(is.null(plot_who)){
subjs <- (1:length(x@st_clusters$clust_dfs))
Expand Down
24 changes: 24 additions & 0 deletions vignettes/spatialGE_troubleshoot.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title: "Troubleshooting"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{spatialGE_tutorial}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
```

### When using `readRDS` to load an STList, I get 'Error: vector memory exhausted'. What can I do?
This error results from R's default memoery limits. Provided your computer has
enough memory to hold an STList in memory, this error message can be overridden by
typing in a Terminal (Mac OS):
```
echo 'R_MAX_VSIZE=100Gb' >> ~/.Renviron
```
Then, close and re-open R and try to load the STList again.

0 comments on commit abe703d

Please sign in to comment.