Skip to content

Commit

Permalink
Mention setting width for proper rendering to PDF
Browse files Browse the repository at this point in the history
  • Loading branch information
nvelden committed Sep 2, 2024
1 parent 4e7d8f2 commit 40e8f9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vignettes/geneviewer.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -1397,7 +1397,7 @@ GC_chart(ophA_cluster, group = "class", height = "150px") %>%

You can save plots directly in the browser as PNG images using the save button that appears when hovering over the graph. This option can be disabled by setting the `save_button` parameter to `FALSE` in the `GC_chart` function.

To save plots in different formats, you can use the `webshot2` package as illustrated below:
To save plots in different formats, you can use the `webshot2` package as illustrated below. If your plots contain complex elements like gene links, it is recommended to specify the width and height dimensions explicitly to ensure proper rendering.

```{r echo=TRUE, eval=FALSE, warning=FALSE}
library(webshot2)
Expand All @@ -1407,7 +1407,7 @@ cluster_plot <-
GC_chart(ophA_clusters,
group = "class",
cluster = "cluster",
width = "400px",
width = "400px", # Essential to prevent misalignment of gene links
height = "250px")
# Save plot to temp.html file
Expand Down

0 comments on commit 40e8f9b

Please sign in to comment.