I can do a sparkBar, but no sparkHist. Is this possible to do?
This is an example of how to create a sparkBar (from example(newSparkBar)
:
library(sparkTable)
data(pop)
x <- pop[pop[,2]=="Insgesamt",3]
b <- newSparkBar(values=x-min(x))
getParameter(b, type="values")
b <- setParameter(b, c("darkred", "darkgreen","black"), type="barCol")
plotSparks(b, outputType="pdf", filename="testBar1")
Is something like this what you had in mind? (It could easily be wrapped into a
newSparkHist
functon, but I haven't bothered ...)