Entering edit mode
Enter the body of text here
Hello! I have been following the GvHD code in order to work on analyzing flow data in R. However, I keep getting the following undefined columns error Code should be placed in three backticks as shown below
knitr::opts_chunk$set(echo = TRUE)
library(ggfortify)
library("flowCore")
library("mtvnorm")
library(ggcyto)
library("ggplot2")
library(flowWorkspace)
library(flowWorkspaceData)
library(xtable)
library(cowplot)
data("GvHD") #load data set
dataDir <- system.file("extdata", package="flowWorkspaceData")
gs <- load_gs(list.files(dataDir, pattern = "gs_bcell_auto",full =TRUE))
gs@transformation <- transform(colnames(gs)[-(1:2)], flowjo_biexp_trans())
autoplot(gs[1], gate = c("CD3","CD19"), bins = 64) +
geom_overlay(data = "IgD+CD27+",size=0.25)
Error in `[.data.frame`(x@transformation, i) : undefined columns selected
Any help would be appreciated thanks.