Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>After reading the comments here, I have included histograms in the version 0.9.4 of the sparkTable package. Basically in the same style as the previous Answer suggested.</p> <p>Here are two examples:</p> <p>1) Only for plotting a sparkHist (not very exciting)</p> <p>2) For creating a sparkTable with boxplots and histograms for normal and lognormal distributed data</p> <pre><code>#Example newSparkHist hh &lt;- newSparkHist(values=rnorm(100)) plotSparks(hh, outputType='pdf', filename='testHist1') #Example sparkTable with Hist+Box with 2 variables in 10 different groups datEx &lt;- data.frame(variable=sample(paste("Cat",1:10,sep="_"),1000,replace=TRUE), value=rnorm(1000),value2=rlnorm(1000)) b &lt;- newSparkBox() h &lt;- newSparkHist() content &lt;- list(function(x) { round(mean(x),2) }, function(x) { round(median(x),2) }, function(x) { round(quantile(x,.25),2) }, function(x) { round(quantile(x,.75),2) }, b, h, function(x) { round(mean(x),2) }, function(x) { round(median(x),2) }, function(x) { round(quantile(x,.25),2) }, function(x) { round(quantile(x,.75),2) }, b, h ) names(content) &lt;- c(paste(c("Mean","Median","Q25","Q75","Boxplot","Histogram"), "_v1",sep=""), paste(c("Mean","Median","Q25","Q75","Boxplot","Histogram"),"_v2",sep="") ) varType &lt;- c(rep("value",length(content)/2),rep("value2",length(content)/2)) datEx &lt;- reshapeExt(datEx,idvar="variable", varying=list(2,3)) x2 &lt;- newSparkTable(datEx, content, varType) plotSparkTable(x2, outputType="html", graphNames="o2",filename="t1") </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload