Scrollable plot vistime in R - r

Is it possible to fix the height of a plot in vistime and then be able to scroll through the rows rather than having all rows presented at once. I know you can fix the zoom since it's a plotly object, but once zoomed in it does not seem like its possible to scroll down to see the other rows.

Related

How do I remove vertical scroll using DT library in R?

what I have right now
I am trying to display the first six observations of my data set, but since I have 79 variables the columns don't fit all in one line. I managed to add a horizontal scroll bar using the DT library (so now the output chunk is a table where the columns appear all on one line). The problem is that I now have also a vertical scroll bar which I don't want: as you can see in the image one needs to scroll down also to see all six observations. Is there a way to display the six rows and scroll to the right to see the 79 variables? i.e. can I keep only the horizontal scroll bar and remove the vertical?
edit: I solved it like this

How do I change the height of a tabset on R Flexdashboard to be responsive?

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)

Set width and height of graphic made using ggplot, grid, and gridExtra

If I have a graphic composed of several plots, say three plots arranged vertically. This is a gtable object and can be drawn to the page with:
grid::grid.newpage()
grid::grid.draw(plot)
However I see that the plot in my RStudio is 'smushed up' as in the screenshot below:
As you can see in the bottom right corner it is squashed and the titles overlap with other elements of the graphic.
If I hit zoom and view the plot it is a lot bigger:
Now I know, that if I were to export my gtable plot using pdf() or png() and such devices, I can set a width and a height, and so just make it big enough such that the plot is not squashed.
However, instead of one of those graphic devices, I would like to use export.grid, from the gridSVG package to save it to an SVG file. But if I do
gridSVG::export.grid(plot)
Then the SVG file exported looks squashed as it does in the RStudio plot window.
So my question is, how can I manipulate the dimensions of the graphic so it is drawn to SVG without it looking squashed? I draw the plot initially with grid.newpage and grid.draw, I wonder perhaps I have to specify some size of the page or drawing using grid.
Thanks,
Ben.

Javafx chart show more empty space

I am customizing the javafx charts a bit adding valuelabels etc above bars and sliding out certain parts of piecharts. The problem is some of the extras come outside of the visual area.
Is there a simple way to get piecharts to become smaller (but the chart component itself retain its size so that there is more empty space surround the pie?
The same issue with barcharts. I need more empty space above my vertical bars, and more empty space to the right of my horizontal bars.
All data in the table has Number(mostly BigDeicmal) for its value and String for its key and series.

Flex - Placement of Legend for a chart

I would like to be able to specify the placement of a legend for a linechart. Currently, it continues to appear to the right of the chart. I have tried playing with the width/height of the chart to no avail... Putting the legend before the linechart in the mxml causes it to appear to the left. I can't seem to get it appear at the bottom though. I can't seem to find any good examples for this. They don't seem to specify anything but the legend usually shows up below the chart, I can't seem to do it. Optionally, it would be okay to somehow minimize the legend..
what container are your line chart and legend in? its sounds like you are using either an HBox or an application with the layout="horizontal". To move the legend below use either a VBox or application layout of vertical. Or you can use a canvas and use constraints (left, right, top, bottom) or x and y coordinates

Resources