xname: string vector with the name of the variable on the x axis
yname: string vector with the name of the variable on the y axis
Returns
plotly image with the scatterplot
Examples
library(plotly)#load the datasetmetabolic_measures <- synthetic_metabolic_dataset
phenotypes <- synthetic_phenotypic_dataset
#Pre-process the metabolic featuresprepped_met<-QCprep(as.matrix(metabolic_measures), MiMIR::PARAM_metaboAge)#Apply the metaboAgemetaboAge<-apply.fit(prepped_met, FIT=PARAM_metaboAge$FIT_COEF)age<-data.frame(phenotypes$age)rownames(age)<-rownames(phenotypes)scatterplot_predictions(age, metaboAge, title="Chronological Age vs MetaboAge")