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

supporting plot pie for spatial data #18

Merged
merged 3 commits into from
Dec 13, 2023

Conversation

xiangpin
Copy link
Member

plot pie for spatial data

> library(SpatialExperiment) |> suppressPackageStartupMessages()
> library(Seurat) |> suppressPackageStartupMessages()
> library(ggplot2)
> library(ggsc)
> spe <- readRDS('./spe_data.rds')
> seu <- readRDS('./brain.sru.rds')
> g1 <- rownames(spe) |> sample(10)
> g2 <- rownames(seu) |> sample(10)
> p1 <- spe |> sc_spatial(features=g1, plot.pie=T, pie.radius.scale=.3, linewidth=0.1, image.plot=F)
> p2 <- seu |> sc_spatial(features=g2, plot.pie=T, pie.radius.scale=.35, image.plot=F)
> p1 + p2

image

@codecov-commenter
Copy link

Welcome to Codecov 🎉

Once merged to your default branch, Codecov will compare your coverage reports and display the results in this comment.

Thanks for integrating Codecov - We've got you covered ☂️

@GuangchuangYu GuangchuangYu merged commit 0d025ff into YuLab-SMU:devel Dec 13, 2023
3 checks passed
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

Successfully merging this pull request may close these issues.

3 participants