Image saving requires kaleido python package setup via reticulate R package. See ?plotly::save_image for more details and setup instructions. Pass in savename with html file extension to avoid these errors.
Arguments
- df_pca
string or
prcompobj; (path to) PCA output- PCs
num vector; list of numeric PCs to plot (ex.
c(1:3)for first 3 PCs)- type
c("Score", "Loading")- anno
string/df; Annotation info for
df_pcawithannoname,annotype, andannolabelcolumns- annoname
string; Colname in
annomatching point name- annotype
string; Colname in
annowith info to color by- annolabel
string; Colname in
annoto label points by, defaults toannoname- label
logical; T to label points
- colors
char vector; For discrete
annotype, length should be number of uniqueannotypes or length 2 for continuousannotypes wherecolors[1]represents low values andcolors[2]represents high values.- title
string; Plot title
- savename
string; File path to save plot under,
htmlif not an image format- rotate
logical; T to have the HTML widget automatically rotate when opened. Only applicable if
savenameis notNULL- width
numeric; Saved plot width
- height
numeric; Saved plot height if saving as image format