Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Hi @user2691669 welcome to SO. I will try to address your 4 questions. </p> <ol> <li>To set style use a marker with option symbol = <code>your style</code> </li> <li>To remove markers use a marker with option enabled = <code>FALSE</code></li> <li>To not have a series show in legend use <code>showInLegend = FALSE</code></li> <li>To interpolate missing values the best i can offer is <code>connectNulls = TRUE</code></li> </ol> <p>Your code can be written to implement the above as:</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, marker = list(symbol = 'circle'), connectNulls = TRUE) h1$series(data=plotData$fc, marker = list(symbol = 'circle'), connectNulls = TRUE) h1$series(data=plotData$uci, showInLegend = FALSE, marker = list(symbol = 'square'), connectNulls = TRUE) h1$series(data=plotData$lci, showInLegend = FALSE, marker = list(symbol = 'square'), connectNulls = TRUE) h1$series(data=rep(30,30), marker= list(enabled = FALSE)) h1 </code></pre> <p>The various options can be seen at the <a href="http://api.highcharts.com/highcharts" rel="nofollow">HighCharts api</a> documentation. For example the marker options are found at <a href="http://api.highcharts.com/highcharts#plotOptions.series.marker" rel="nofollow">this link</a>.</p>
 

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