if(FALSE && requireNamespace("plotly", quietly = TRUE)) {
if (requireNamespace('data.table', quietly = TRUE)) {
# don't multi-thread during CRAN checks
data.table::setDTthreads(1)
}
set.seed(34903490)
x = rnorm(50)
y = 0.5*x^2 + 2*x + rnorm(length(x))
frm = data.frame(x=x,yC=y>=as.numeric(quantile(y,probs=0.8)))
plotlyROC(frm, 'x', 'yC', TRUE, 'example plot', estimate_sig = TRUE)
}
Run the code above in your browser using DataLab