girafe graphics are responsive, which mean, they will be resized
according to their container. There are two responsive behavior
implementations:
one for Shiny applications and flexdashboard documents,
and another one for other documents (i.e. R markdown and saveWidget).
Graphics are created by an R graphic device (i.e pdf, png, svg here) and
need arguments width and height to define a graphic region.
Arguments width_svg and height_svg are used as corresponding
values. They are defining the aspect ratio of the graphic. This proportion is
always respected when the graph is displayed.
When a girafe graphic is in a Shiny application,
graphic will be resized according to the arguments width and
height of the function girafeOutput. Default
values are '100\
outer bounding box of the graphic (the HTML element that will
contain the graphic with an aspect ratio).
When a girafe graphic is in an R markdown document (producing an HTML
document), the graphic will be resized according to the argument width of the
function girafe. Its value is beeing used to define a relative
width of the graphic within its HTML container. Its height is automatically
adjusted regarding to the argument width and the aspect ratio.