dynamicplot: Dynamic Shiny plot for SMoLR

View source: R/dynamicplot.R

dynamicplotR Documentation

Dynamic Shiny plot for SMoLR

Description

This function allows to run a Shiny web application to explore the localization data

Usage

dynamicplot(x)

Arguments

var

the localization data of a single image to be viewed in the dynamic Shiny plot

dbdata

dbscan clustering object of the localizations in the var, when ommitted this is calculated in the dynamic plot while loading, but this might increase the time to load application

overlay

a SMOLR_image object of the localizations in the var, when ommitted this is calculated in the dynamic plot while loading, but this might increase the time to load application

Details

In the shiny application one can drag on the plot to select clusters with certain values, those will be color codes in the plot on the right. Additionally it is possible to zoom-in in the image, by dragging in the image, the plot and image will be shown for the selected zoom-in area.

Examples

dynamicplot(smolrdata[smolrdata$Channel==1,],eps = 50,MinPts=5)
dynamicplot(smolrdata[smolrdata$Channel==3,],eps = 50,MinPts=5)

download.file("https://github.com/maartenpaul/SMoLR_data/raw/master/dynamicplot_data.zip","dynamicplot_data.zip")
unzip("dynamicplot_data.zip")

load("dynamicplot_data.Rdata")
dynamicplot(locdata)

#preload the data
dbdata <- SMOLR_DBSCAN(locdata)
overlay <- SMOLR(locdata)
dynamicplot(locdata,dbdat=dbdata,overlay=overlay)

ErasmusOIC/SMoLR documentation built on Aug. 20, 2024, 8:50 p.m.