kevinblighe / EnhancedVolcano

Publication-ready volcano plots with enhanced colouring and labeling
397 stars 81 forks source link

while adjusting shape of plotted points ,accepts four possible values: Error in `[[<-.data.frame`(`*tmp*`, i, value = c(NS = 1, FC = 2, P = 3, : replacement has 4 rows, data has 3 #128

Open wanganlin00 opened 4 months ago

wanganlin00 commented 4 months ago

When I followed the tutorial on the bioconductor package vignetttes of EnhancedVolcano

it appeared

EnhancedVolcano(res,
    lab = rownames(res),
    x = 'log2FoldChange',
    y = 'pvalue',
    shape = c(1,2,3,4)
    )
#>>> Error in `[[<-.data.frame`(`*tmp*`, i, value = c(NS = 1, FC = 2, P = 3,  : 
  replacement has 4 rows, data has 3

when accepting one value is OK。 So, how can I deal with this Error.

tobbyxy commented 2 months ago

Shape can accept either a single value or concatenation (1,2,3,4). Try loading the res object again and see if it works.