R combining data tables DT package and sparkline package box plot with target value
问题 I'm using sparkline plots in a DT table as outlayed here: https://leonawicz.github.io/HtmlWidgetExamples/ex_dt_sparkline.html Boiled down dummy example as follows library(data.table) library(DT) library(sparkline) hist.A<-rnorm(100) hist.B<-rnorm(100) hist.C<-rnorm(100) current.A<-rnorm(1) current.B<-rnorm(1) current.C<-rnorm(1) #whisker should show full range of data boxval.A<-paste(quantile(hist.A,probs=c(0,0.25,0.5,0.75,1)),collapse = ",") boxval.B<-paste(quantile(hist.B,probs=c(0,0.25,0.5