I would like to create a sparkline using R and include it in a Latex table (using knitr) .
I have found the SparkTable package but have been unable to work out how to specify (based on my own set of rules) which data points are classified as "outliers".
Effectively, I only want to colour the last data point (either Red, Blue, Grey, or no colour) (based on a custom rule). In addition, I would like to specify the limits for the y-axis and for the image to look similar to the following,
Any help / suggestions will be much appreciated
Thanks, Marie