Object not found but it actually exists

Hi all! I'm trying to create 2 graphics but this message continues to show up: Error: object 'plot1' not found

This is the code:

plot1 = FeatureScatter(brain, feature1 = "nCount_RNA", feature2 = "percent.mt")
plot2 = FeatureScatter(brain, feature1 = "nCount_RNA", feature2 = "nFeature_RNA")
plot1 + plot2

These are the packages that I'm using:

library(dplyr)
library(Seurat)
library(patchwork)
install.packages('Seurat')
install.packages('remotes')
remotes::install_github(repo = 'satijalab/seurat', ref = 'develop')
library(Seurat)
library(ggplot2)

Could anybody help me with this? :slight_smile:

I've just discovered that I can't run all these lines at once. I needed to run each of them individually. :sweat_smile:

Problem solved!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.