Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Apr 2, 2024 · 1 comment

Comments

@wanganlin00
Copy link

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
Copy link

tobbyxy commented Jun 5, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants