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

Issue plotSpatialScatterpie with a SpatialExperiment object #70

Closed
Zifeng-L opened this issue Aug 10, 2022 · 3 comments
Closed

Issue plotSpatialScatterpie with a SpatialExperiment object #70

Zifeng-L opened this issue Aug 10, 2022 · 3 comments

Comments

@Zifeng-L
Copy link

Hi there,
I just want to plot a scatterpie with the axis from the mirror img.

plotSpatialScatterpie(
        x = spe,
        y = mat,
        cell_types = colnames(mat),
        img = TRUE,
        slice = SpatialExperiment::imgData(spe)[1, "sample_id"],
        scatterpie_alpha = 1,
        pie_scale = 0.4,
        axis = "h"
    )

I keep getting this error:
1660145062093

any help? Many thanks in advance.

@MarcElosua
Copy link
Owner

Hi @Zifeng-L,

For me it works well when I pass a a SpatialExperiment object. Can you please return what class spe is?
You can also try passing the image object directly to the parameter img = SpatialExperiment::imgRaster(spe, sample_id = slice)

Hope this helps!

@criphg
Copy link

criphg commented Sep 7, 2022

Same problem here.
class(spe) = "SpatialExperiment",
when use imgRaster(spe) in place of True only show part of image, and lost of pie chart information.
The image looks good in plot(imgRaster(spe)).

Any help would be appreciated.

@MarcElosua
Copy link
Owner

Hi @criphg could you please share a reprex so I can look into this?
Have you tried passing the image object directly to the img parameter - img = SpatialExperiment::imgRaster(spe, sample_id = slice)
Thank you!

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

3 participants