Within the plotly R package, data and graphical specifications are translated into JavaScript visualizations. That translation provides the browser-oriented behavior behind hovering, zooming, panning, and selection, rather than treating the figure as an unchanging image. As a result, users can inspect individual observations and navigate a graphic interactively while working from R data or statistical results.
Users can approach Plotly in RStudio graphics in two ways: they can convert ggplot2 figures or construct charts with Plotly functions. Conversion supports an interactive version of an existing ggplot2-based visualization, whereas Plotly functions let users build the chart through Plotly-specific graphical specifications. This choice accommodates workflows that begin with ggplot2 and workflows that start directly from Plotly.
Interactive controls support more than visual presentation: hovering can help inspect points, while zooming and panning help examine selected portions of a display. Selection adds a way to focus on observations within the graphic. In environmental exploration, these actions can make patterns and outliers easier to recognize than in a static plot.
An RStudio workflow can begin with environmental data or statistical results. Users then work through the plotly R package, choosing either a ggplot2-based figure to convert or Plotly functions to create a chart, and inspect the resulting interactive output. The same type of output can support reports, applications, or dashboards.
Environmental researchers can apply these graphics to temperature, precipitation, pollution, biodiversity, and other measurements. Time and location provide meaningful dimensions for examining change and distribution, while interaction allows users to investigate the displayed measurements more closely. This makes the approach useful for exploratory analysis across varied environmental datasets.
Interactive outputs can support both analysis and communication. During exploration, users can use the available controls to examine patterns or outliers and move between broader and more focused views. In reporting and presentation, the graphics can be incorporated into reports, applications, and dashboards, allowing environmental results to be communicated as navigable visual displays rather than only static figures.