int_plot | R Documentation |
Plot an interactive graph of the direct data if the number of points to print is not to high, else it plot the image of the plot.
int_plot(data, img, tit = "t-SNE", src = "M", max_points = 3000)
data |
A data frame that contains the data. For now, needs to have 'tSNE1', 'tSNE2', 'pred' and 'index' columns. The 'tSNE' axes are the y and x axes respectively, 'pred' is the color and 'index' is the row names. |
img |
The image of the plot. Need to be an 'Image' object from |
tit |
The title of the plot |
src |
The source of the plotly plot, default is "M" |
max_points |
The maximum number of points you want to print before ploting the image of the plot |
An interactive plot from plotly on which can draw path
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.