Yes, I also tried to draw all genes and highlight genes of interest plot with labels like this :
# Create an EnhancedVolcano plot with labels for the subset of target genes
p8 <- EnhancedVolcano(
df3,
lab = as.character(subset_df$gene), # Extract gene names as a character vector
x = 'logFC',
y = 'P.Value',
title = 'Dilated Cardiomyopathy vs Control',
pCutoff = 0.05,
FCcutoff = 0,
pointSize = 3.0,
labSize = 6.0
)
but it gives me the following error:
Error in `$<-.data.frame`(`*tmp*`, "lab", value = c("PDLIM3", "FHOD3", :
replacement has 10 rows, data has 3882