[Bug] Argument to change pixel size in `add_rasterizer` function breaks the raster plot.
Closed this issue · 1 comments
In the rasterly
package, the function add_rasterizer
is used to generate the raster plot layer for the Plotly chart. One of the arguments is size
: A numeric vector or expression, Pixel size for each observation, to be passed on to aes()
.
Adding any value to this to change it from the default results in the chart breaking and all points being assigned what seems like the mean value of the data-points based on the scale.
In the package we can see that size <- size %||% p$x$attrs[[1]][["size"]]
, but it's hard to discern where it's actually pulling the value from in the Plotly object.
Attached is an image to show the result when assigning a numeric value to size
as seen in the dashr-uber-rasterizer
Dash app.
It should be fixed now.