Skip to contents

Creates a log-log scatterplot of planetary radius versus stellar flux, colored by the Earth Similarity Index (ESI).

Usage

scatterplot_esi(data, plot_limits = c(0.1, 10))

Arguments

data

A data frame containing exoplanet data. Must include the columns:

  • pl_insol: incident stellar flux (in Earth flux units),

  • pl_rade: planetary radius (in Earth radii),

  • esi: Earth Similarity Index (numeric).

plot_limits

A numeric vector of length 2 specifying the lower and upper bounds. Default is c(0.1, 10).

Value

A ggplot2 object representing the scatterplot.

Details

Dashed lines at (1,1) indicate Earth's reference values for stellar flux and radius.

Examples

if (FALSE) { # \dontrun{
closest_50_exoplanets |>
  dplyr::mutate(esi = calculate_esi(pl_rade, pl_insol)) |>
  scatterplot_esi()
} # }