EnhancedVolcano
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
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.
Shape can accept either a single value or concatenation (1,2,3,4). Try loading the res object again and see if it works.