score:1
Change 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)
)
)
score: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
Source: stackoverflow.com
Related Query
- 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?
- How to add an extra label on a scatter plot point in Highcharts Javascript library?
- 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
- highchart hide xaxis categories
- multiple Y axis - margin
- Highcharts Tooltip - Returns unwanted empty string causing render problems
- JSON to javascript Date.UTC
- onclick popout highchart piechart
- Unable to Export HighCharts from IE
- Highcharts - do not return empty rows from the table
- create an interactive table while rotating the piechart
- Legends display order in piechart highcharts
- Newline axis labels exporting to SVG
- React Native Highcharts call method
- Download pdf from High Charts
- Rendering a graph in highcharts/miso
- How to make highchart from view table in Yii2?
- How to use image on label depending on data?
- Highcharts - redraw() vs. new Highcharts.chart
- Export Highcharts to jsPDF - canvg error
- How to combine Bar chart and data as table in High Charts
- How to efficiently remove all series from highchart/highstock and then add many more
- Highcharts: setOptions for two different series of charts?
- How to configure Highcharts so that it displays some pre-defined value
- Drag and drop not working using Highcharts-React
- Javascript High Charts changing Rec Rill hover color
- Highstock Candlestick connect nulls or zero's
- CSV export hidden series in Highcharts
- Highcharts stick column to x axis
- Draw svg file on highchart or inside html tag
- HighCharts: Unexpected value NaN parsing y attribute
- Highcharts: how to set legend label name after chart created?
- Can we have multiple callout in timeline chart for single point?