enter image description hereI have 2 plot outputs that are shown uder each other (using 2 plotoutputs in shiny). But there is a whitespace around the plots which is unnecessary, and I could not get rid of it using css styling such as (padding=0). I would like to have the plots beneath each other with no space between.
I would appreciate any advice! Thanks
Related
Below is a screenshot from quarto document with a wordplot I've generated using wordcloud package in R.
The challenge is that there is a lot of white space between the words on the plot and the border of the plot image.
How do I reduce the size of the extra 'white space'?
Reducing the white space might be way more complex than these two options! Hope that can help as well.
You can change the size of the letters with the wordcloud2 package and fill in the white space.
Example: wordcloud2(data=demoFreq, size=1.6)
You can save the image without the white space and upload it manually in Quarto.
Example: ![Image1](file_name.png)
I have a row tabset and each tab contains a chart and a data table. However my data table keeps getting cut off. Is there some way to make the tabset height responsive so that my data table doesn't get cut off all the time?
See chart and data table cut off here:
I know I could add a scrollbar using css but I don't exactly want that. I want my chart and data to show completely.
Maybe it would be a solution to output your plots (if I see it correctly they are created with ggplot) with plottly.
library(plotly)
ggplotly(your_plot)
I would like to add descriptive text to my plots in Shiny. I am outputting a dynamic number of plots in two columns and I would like to add a third column, like so:
However, I can't figure out how to align the text with the plots. Can I use CSS containers or div's? HTML codes are working, but hardcoding a bunch of <br/>'s does not seem smart. Here is a minimal example.
Any help is greatly appreciated.
Just change the htmlOutput line to
htmlOutput(plotname, style="height:400px;")
You can use the Inspect Element context menu of Firefox to find out the height for the plots.
I would like to be able to select and copy the hover text in plotly graphs. Is that possible with the R API?
For example, in this heatmap, upon mousing over coordinates (X=a, Y=d), one can see the hover text displaying:
x=a,
y=d,
z=0.71886
However, the text is not selectable. The goal would be to e.g. display this text inside a box (perhaps by right-clicking on the corresponding cell) to be able to copy the text contents into the clipboard.
Any help would be greatly appreciated.
When I read table in R, I get this table. You can see that, there is a huge gap between Scored and Annotation text.
How I remove the white blank between them?
Or how I cut the huge string? More be precise: How can I fix table size (and it will be cut automatically).
When i print the table in shiny UI it's seem like this:
Your annotation text is right aligned. Make it left aligned or have your
Annotation comes in the first column and the for a better look.