View source: R/recalculateImageDimensions.R

recalculateImageDimensions | R Documentation |

Given regional bounds image width and height are computed in order to display a region without distortion.

```
recalculateImageDimensions(
visualizeVariables,
lon_bounds,
lat_bounds,
image_def,
ihsf
)
```

`visualizeVariables` |
A dataframe containing $lon and $lat values which will be bounded by lon/lat_bounds (data.frame). |

`lon_bounds` |
Array containing two values for longitude min and max (numeric). |

`lat_bounds` |
Array containing two values for latitude min and max (numeric). |

`image_def` |
Minimal image default size for width and height (numeric). |

`ihsf` |
Image height rescaling factor (numeric). |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.