type = "bubble" to
type = "scatter" and
hc_yaxis as below
hchart(data, "scatter", hcaes(x, y)) %>% hc_yaxis( plotlines = list( list(color = "#252525", width = 2, value = 0) ) )
the above answer is correct, but not perfect so i decided to add my own with more information.
you don't have to change the series type from 'bubble' to 'scatter'. it works fine with 'bubble'.
your code didn't work because, in highcharts, plotlines needs to be an array of objects. in r lists imitate js' arrays and objects so you need a list of lists. also, you don't need to define 'color' and 'width'. i don't remember when exactly, but few months ago highcharts added default values for them and all you need to define is just 'value'.
hc_yaxis(plotlines = list(list(value = 10)))
api reference: https://api.highcharts.com/highcharts/yaxis.plotlines
- How to add vertical (and horizontal) line in highcharts scatter plot
- How to add a vertical plot line in multiple line series and show the tooltip on Plot line in highchart
- Highcharts shared tooltip for line series and scatter plot not working
- How to add a horizontal line in Column bar chart in Highcharts plugin?
- Highcharts Highstock How to Plot OHLC and Line Charts from One Set of Embedded CSV Data Using Series Map Tools?
- Add a gap between the second and third series in a Highcharts column plot with four series displayed
- Highcharts - How to remove connecting line between fixed tooltip and point
- How to add image in Highcharts Title and subtitle
- How to add space between chart and axis in highcharts
- Highcharts padding between plot and graph, how to remove?
- Highcharts scatter plot with variable line width
- How to plot line in highcharts on charts click event?
- Highcharts : How do I keep the marker formatting and make the click event fire with a 5K+ point scatter plot?
- Tooltip in chart with line- and scatter plot in highcharts 3.0.7
- How do i add mouse wheel code in Angular2 highcharts in typescript
- Highcharts - How to make a scatter plot with multiple series from HTML table
- How to change space value between grid and yAxis in Highcharts line chart
- How to get a cubical plot using highcharts 3D scatter chart?
- Highcharts Scatter Plot - How to Fix Overlapping Data Labels?
- Highcharts - How to plot a X axis line on my bell curve (Standard Deviation Curve)
- How to have a highcharts chart in a container of a fixed width, and with a horizontal scrollbar?
- Highcharts -- how to change line width programmatically and prevent resetting line width?
- how to add text in top,left and bottom in funnel highcharts
- How to add exporting date and time as user format in Highcharts exporter?
- add vertical and horizontal lines in hplot (rcharts)
- Add text to generated quadrant area by x and y plot lines , highcharts
- How do you add specific hyperlinks to highcharts line charts?
- How to add dots to Highcharts legend and bars?
- Highcharts -> how to add vertical title to bar? how to make the symbol in the legend a rectangle?
More Query from same tag
- Adding symbols and annotations to Highchart date axis
- How automatic xAxis labels rotation in highchart
- How to add flags to highcharts export server when started as a module
- Markers to appear between the ticks
- Highcharts pie/variablepie align multilines label on plotedge
- How to set containerId when I call Highsoft().Highcharts
- Highcharts Heatmap Legend Max
- MYSQL query for concatenating values (highcharts series data)
- HIghchart show current month data with week interval
- Highcharts gradient fill how to?
- How to add more columns to this JS PNG converter? [Highcharts]
- Display highchart tooltip using Jquery ui dialog
- How to adapt a highstocks chart to a very narrow container?
- Change HighCharts axis title in 2.1.4
- Trying to load data from a textfield to highchart
- Highchart bubble-chart : Show Y-Axis value as numeric range
- plotbands target one of the two panes
- Highchart Legend rendering issue on Linux browsers
- Custom Series Icons
- change the color of Highmap
- Highcharts - do not return empty rows from the table
- Apply a linear gradient to a spline with HighCharts
- JS HighCharts.js Pie data undefined error in code
- In Highcharts, how can we separatedly set up the border color of each block in a Pyramid chart
- How to position the customed tootip of HighCharts?
- Counter with highcharts
- Highcharts: Can sunburst chart show percentage share to depict part-to-whole relationship like pie charts?
- Highcharts: Dynamically add series value to category name
- Unusual gradient inside highcharts splinarea
- Unable to add tooltip for titles in highcharts