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

Showing code in sidebar and plot in the main column? #20

Open
philippgaertner opened this issue Sep 1, 2020 · 3 comments
Open

Showing code in sidebar and plot in the main column? #20

philippgaertner opened this issue Sep 1, 2020 · 3 comments

Comments

@philippgaertner
Copy link

Hi there,

thanks for creating this package, I think it has a lot of potentials.

Issue:
Currently, I am trying to get a nice example up and running and was wondering how I can avoid, that my plots show up in both frames (sidebar & main column).

When I use the template = 'scrollama-sidebar' and look at the "Plots" section, 'The boring scatterplot' is shown in the sidebar as well as in the main column.
I would like to show the code in the sidebar and the plot on the main section. Any idea how I might achieve this?

Thanks in advance!

@philippgaertner
Copy link
Author

Are there any news on this issue? Thank you.

@aluby
Copy link

aluby commented Jan 23, 2021

@philippgaertner I'm having the same issue but adding out.width = "0%" in the chunk options makes the sidebar plot disappear without impacting plots in the main column. This also worked for me for images using knitr::include_image() but didn't work for tables.

@BAREJAA
Copy link

BAREJAA commented Jun 18, 2021

Thanks aluby! For tables, the following worked for me -
https://stackoverflow.com/questions/50335131/r-change-width-of-entire-datatable-in-rmd

Just set width to 0%

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