As mentioned in this comment -- https://github.com/ropensci/plotly/blob/23c23191a74307bde365ab4c31f5495fe4e13710/R/layers2traces.R#L43 Also have to think about how this will play with `tooltip`