Note that there are some explanatory texts on larger screens.

plurals
  1. POFormatting Highcharts plot via rCharts
    primarykey
    data
    text
    <p>I'm having some trouble getting a highchart plot from rCharts working. My data and the intended graph something like this:</p> <pre><code>set.seed(123134) y &lt;- rnorm(20, 35, 4) y[7] &lt;- NA y[13] &lt;- NA y &lt;- rbind(t(t(y)), t(t(rep(NA, 10)))) fc &lt;- rnorm(10, 35, 1) fc &lt;- rbind(t(t(rep(NA,20))), t(t(fc))) uci &lt;- rnorm(10, 38, 1) uci &lt;- rbind(t(t(rep(NA,20))), t(t(uci))) lci &lt;- rnorm(10, 32, 1) lci &lt;- rbind(t(t(rep(NA,20))), t(t(lci))) plotData &lt;- data.frame(y,fc,uci,lci) h1 &lt;- Highcharts$new() h1$chart(type="line") h1$series(data=plotData$y) h1$series(data=plotData$fc) h1$series(data=plotData$uci) h1$series(data=plotData$lci) h1$series(data=rep(30,30)) h1 </code></pre> <p>Mostly it is some observed data with missing values, a forecast and corresponding intervals and a certain limit displayed by a horizontal line. Now, there are some things I can't figure out:</p> <ol> <li>I'd like to have the forecasts and intervals the same style. How can I change the point style of these three series to the same style?</li> <li>The horizontal line doesn't have to be interactive. Is there a option to draw a simple horizontal line? I didn't get it to work with the reference from <a href="http://docs.highcharts.com" rel="nofollow">http://docs.highcharts.com</a></li> <li>How can I remove certain series from the legend? In particular I don't want the intervals to be included in the legend.</li> <li>Is there a way of interpolating the missing values in the observed data? Or do I have to do this manually in advance?</li> </ol>
    singulars
    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.
 

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