Skip to content

layout ggplots in a table documentation

Siddhesh Deodhar edited this page Oct 9, 2024 · 2 revisions

The PR #139 of this feature is yet to be merged into animint.

What parameters are used for defining the layout of the plots ?

  • The user can define the plots in a specific row and column and also define the rowspan and colspan. The user has to give locations of all the plots or none at all.

  • If the user does not pass row and column for any plots, then they are put one after the other starting from the first row. The relative locations of this plots is still fixed regardless of the browser interaction.

How to pass those parameters in the plot ?

  • use theme_animint function to pass the plots. One example of is :
theme_animint(row=0,col=0,rowspan=1,colspan=1)

One example screenshot of customized plot layout-

  • In the above example, Plot of 3 Dots is at (0,0) with a rowspan=2. Plot of 2 Dots is at (0,1). Car Weight vs MPG is at (2,0). Plot of 1 Dot is in (1,1).

Future work for this functionality

  • Give error if more than one plot is put in the same cell.