# NOT RUN {
#These examples assume "Time", "Infection", and sampleType columns exist in target metadata.
/*
* Create a MDS plot with convex hulls drawn based on "Time" metadata.
* Shapes are based on "Infection". Compute based on data from all genes.
*/
plot_mds_hulls("mds_hull_plot.pdf", "Time", "Infection",
deOnly=FALSE, showLabel=FALSE, hullType="solid",
theme=1)
/*
* Create a MDS plot with convex hulls drawn based on "Time" metadata.
* Shapes are based on "Infection". Compute based on data from only
* differentailly expressed genes. Hulls drawn only as outlines.
*/
plot_mds_hulls("mds_hull_deOnly_plot.pdf", "Time", "Infection",
deOnly=TRUE, showLabel=FALSE, hullType="outline",
theme=2)
/*
* Create a MDS plot with convex hulls drawn based on "Time" metadata.
* Shapes are based on "Infection". Compute based on data from only
* differentailly expressed genes. Do not show samples labeled
* as "mock" from "sampleType" column of target metadata.
*/
plot_mds_hulls("mds_hull_deOnly_plot.pdf", "Time", "Infection",
deOnly=TRUE, showLabel=FALSE, hullType="outline",
exclude_data=TRUE, idCol="sampleID",
excludeCol="sampleType", excludeName="mock"
theme=4)
# }
Run the code above in your browser using DataLab