data_grid function - RDocumentation

<p>To visualise a model, it is very useful to be able to generate an evenly spaced grid of points from the data. <code>data_grid</code> helps you do this by wrapping around <code><a href="https://tidyr.tidyverse.org/reference/expand.html">tidyr::expand()</a></code>.</p>