Skip to content

fill by variable does not work with ggcyto #91

Description

@sapirhv

when using ggcyto, the "fill" function of ggplot does not work. It's not recording the variable in "fill" and indicating that it's not found resulting in an error.
sample code:

library(ggcyto)
library(flowCore)
library(ncdfFlow)
library(flowAssist)

# Convert the matrix into a flowFrame object
ff <- DFtoFF(DATA[c("Median.var1", "Median.var2", "Median.var3")])

# Create a flowSet object from the flowFrame
fs <- flowSet(ff)


# Create a plot using ggcyto
p <- ggcyto(fs, aes(x = Median.var1, y = Median.var2)) +
  geom_point(aes(fill = Median.var3)) +
  labs(x = "Median Intensity - var1", 
       y = "Median intenisty - var2") +
  ggtitle("var1 vs var2- Median")

sample error:

Error in `geom_point()`:
! Problem while computing aesthetics.
i Error occurred in the 1st layer.
Caused by error in `FUN()`:
! object 'Median.var3' not found

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions