autoSize {MSImaging} | R Documentation |
autoSize(dims, padding,
scale = 1,
is.multiple.combine.wide = FALSE,
ratio.threshold = 1.25,
ratio.scale = 1.5);
the dimension data of the MSImaging raw data. it should be a numeric vector with at least two element standards for [w, h]
; or a list object with at least two slot elements which are named w
and h
.
a numeric factor for describ the pixel scale size in MSImaging rendering process. default value is 1 means no scale, just rendering of the origina size!
the padding element is a numeric vector with four elements standards for css padding value: [top, right, bottom, left]
.
the function will trying to make the aspect ratio equals to 1:1 if this parameter value is set to false by default.
the scale of the ratio value should not be 1, due to the reason of 1
means no changes.
this function returns a list object that contains the recommended size value for the MSImaging plot. the result value contains two slot elements: size element is a dimension vector with two elements standards for [w, h]
.