score:3
Accepted answer
Hi @user2691669 welcome to SO. I will try to address your 4 questions.
- To set style use a marker with option symbol =
your style
- To remove markers use a marker with option enabled =
FALSE
- To not have a series show in legend use
showInLegend = FALSE
- To interpolate missing values the best i can offer is
connectNulls = TRUE
Your code can be written to implement the above as:
set.seed(123134)
y <- rnorm(20, 35, 4)
y[7] <- NA
y[13] <- NA
y <- rbind(t(t(y)), t(t(rep(NA, 10))))
fc <- rnorm(10, 35, 1)
fc <- rbind(t(t(rep(NA,20))), t(t(fc)))
uci <- rnorm(10, 38, 1)
uci <- rbind(t(t(rep(NA,20))), t(t(uci)))
lci <- rnorm(10, 32, 1)
lci <- rbind(t(t(rep(NA,20))), t(t(lci)))
plotData <- data.frame(y,fc,uci,lci)
h1 <- 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
The various options can be seen at the HighCharts api documentation. For example the marker options are found at this link.
Source: stackoverflow.com
Related Query
- Formatting Highcharts plot via rCharts
- Highcharts Area Range Plot in rCharts
- passing formatting JavaScript code to HighCharts with JSON
- Issue with Dates - trying to plot MongoDB data in Highcharts via PHP
- rCharts and highcharts with shiny plot does not update correctly
- HighCharts - applying a formatting function over plot options
- Reload chart data via JSON with Highcharts
- Loading Highcharts via shim using RequireJS and maintaining jQuery dependency
- Number Formatting at Highcharts Chart Values?
- highcharts datetime x-axis custom formatting
- HighCharts load data via ajax
- rCharts with Highcharts as shiny application
- Plot Histograms in Highcharts
- How to convert datetime string to UTC to plot points on Highcharts
- How to convert datetime string to UTC to plot points on Highcharts
- Making a Highcharts plot with Python
- Add a gap between the second and third series in a Highcharts column plot with four series displayed
- Passing Django Database Queryset to Highcharts via JSON
- Dynamically applying plot bands to a Highcharts graph
- Play Framework: PDF'ing a template that uses highcharts JS library via a Job
- Highcharts Column chart with drilldown, remove hyperlink like formatting from x-axis labels
- Highcharts Plot Reciprocal Values For Column Height
- Highcharts scatter plot with lots of data points running really slow
- Formatting JSON data monthwise for HighCharts using MySQL
- Highcharts - multiple plot with the same x scale
- Highcharts shared tooltip for line series and scatter plot not working
- Highcharts padding between plot and graph, how to remove?
- Highcharts - Display only year in x axis and stop auto formatting
- Using PhantomJS to create HighCharts grahps server side for use in PDF creation (PHP) - results in exit code 11 from PHPs exec();
- How to remove text which was added via chart.renderer in Highcharts
More Query from same tag
- How is the api doc generated @ http://api.highcharts.com/
- highchart select an area to show some info by clicking and drag mouse but not release
- Highcharts: Change color of bubbles in one serie
- Convert DataTable to array for highcharts
- Problem with highcharts + vue.js : specific chart for measurements
- Highmaps: Wrap fillSetter for colorAxis
- Bootstrap+HighCharts.js Responsive Image Position in Donut Chart
- Highcharts in Yii2
- Plotting using highcharts.js labels are being rendered off-center in stead of being centered
- How to add a spikeLine to highchart?
- How to render Highcharts to div with id as container - Angular?
- Highcharts Marimekko chart refresh
- How to solve the wrong categories for xAxis in highcharts?
- highcharts move a point using pixels
- How to align Highcharts datetime x-axis with data I pass to it?
- HighCharts: Can I call the Exporting functions directly?
- How to transform a point with latitude and longitude value to a coordinates in highcharts map?
- Highchart prevent auto reload
- dynamic threshold values in highchart - arearange
- jQuery AJAX chart object reference passing?
- Highcharts: How to set colors per column, per series, with a data set, in a multi series chart?
- how to add dynamic series in highcharts
- How to export inner levels of treemap chart
- How to add percent symbol with data inside column in highchart?
- X-axis alignment for Columnrange
- Highcharts: export image show wrong color and line width if user change the color and/or line width
- How to customize a tooltip number in Highcharts?
- Highlight multiple series in Highcharts
- Unable to set gape in Gauge Highchart
- HighCharts change zoom selectionMarkerFill color dynamically