EnhancedVolcano icon indicating copy to clipboard operation
EnhancedVolcano copied to clipboard

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

Open wanganlin00 opened this issue 10 months ago • 1 comments

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.

wanganlin00 avatar Apr 02 '24 14:04 wanganlin00

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

tobbyxy avatar Jun 05 '24 19:06 tobbyxy