luisacutillo78 / scRNAseq_Hackathon

8 stars 1 forks source link

Seurat Tutorial 2: LabelPoints error #7

Open lilythepooh opened 2 years ago

lilythepooh commented 2 years ago

Dear all,

Thanks for reading this issue.

I am running Seurat Tutorial 2 here https://github.com/luisacutillo78/scRNAseq_Hackathon/blob/main/Analysis_TabulaMuris_AC_2.Rmd . Running line 81 and 82 gave me the following error:

> plot2 <- LabelPoints(plot = plot1, points = top10, repel = TRUE)
When using repel, set xnudge and ynudge to 0 for optimal results
> plot2
Error in grid.Call(C_convert, x, as.integer(whatfrom), as.integer(whatto),  : 
  Viewport has zero dimension(s)

Then I tried to set xnudge=0,ynudge=0:

> plot2 <- LabelPoints(plot = plot1, points = top10, repel = TRUE, xnudge = 0, ynudge = 0)
> plot2
Error in grid.Call(C_convert, x, as.integer(whatfrom), as.integer(whatto),  : 
  Viewport has zero dimension(s)

I am not sure how to fix this. Could you please check? Thanks a lot!

Best wishes, Sijia

luisacutillo78 commented 2 years ago

Dear Sijia,

we do not recognize this error. None of us got it. Are you sure you ran all the previous lines and loaded all the libraries?

Thanks,

Luisa.

On Mon, 9 May 2022 at 12:03, Sijia Li @.***> wrote:

Dear all,

Thanks for reading this issue.

I am running Seurat Tutorial 2 here https://github.com/luisacutillo78/scRNAseq_Hackathon/blob/main/Analysis_TabulaMuris_AC_2.Rmd . Running line 81 and 82 gave me the following error:

plot2 <- LabelPoints(plot = plot1, points = top10, repel = TRUE) When using repel, set xnudge and ynudge to 0 for optimal results plot2 Error in grid.Call(C_convert, x, as.integer(whatfrom), as.integer(whatto), : Viewport has zero dimension(s)

Then I tried to set xnudge=0,ynudge=0:

plot2 <- LabelPoints(plot = plot1, points = top10, repel = TRUE, xnudge = 0, ynudge = 0) plot2 Error in grid.Call(C_convert, x, as.integer(whatfrom), as.integer(whatto), : Viewport has zero dimension(s)

I am not sure how to fix this. Could you please check? Thanks a lot!

Best wishes, Sijia

— Reply to this email directly, view it on GitHub https://github.com/luisacutillo78/scRNAseq_Hackathon/issues/7, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADIYZLSEKAJL2I7UN7AZNGDVJDWJZANCNFSM5VN4MRIQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Luisa Cutillo

Lecturer at ​the School of Mathematics , Universit ​y of Leeds, UK​

lilythepooh commented 2 years ago

Hello all,

I just found a fix of this issue. Actually it means the plot window of my R studio is too narrow, so I just zoom the plot window in R studio very wide and it works.

Thanks a lot for your time!

Best wishes, Sijia