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

whether need to define operators acting on aplot class? #21

Open
xiangpin opened this issue Aug 25, 2022 · 1 comment
Open

whether need to define operators acting on aplot class? #21

xiangpin opened this issue Aug 25, 2022 · 1 comment

Comments

@xiangpin
Copy link
Member

The insert_right, insert_top etc will return aplot class (eg. p ), which is composed of multiple subplots. They can be extracted using p$plotlist[[1]] etc. And the theme, scale and others of subplot can be adjusted using p$plotlist[[1]] <- p$plotlist[[1]] + xxx. Whether need to define operators acting on this class, then users can use p[[1]] to extract the subplot?

@GuangchuangYu
Copy link
Member

That's a nice idea.

I think the best way is to employ the gglist. However, it needs a lot of changes and may introduce new bugs.

Currently, we can define the [[.aplot method to extract the subplot. Go ahead to do it.

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