Galactic and Equatorial Coordinate Implementation for 'ggplot2'

Simple tools to draw sky maps in 'ggplot2' using galactic or equatorial coordinates. Includes custom coordinate systems, grid labels, and helpers for sky map breaks.


Lifecycle: experimental

ggsky

ggsky is an extension for ggplot2 to draw sky maps with:

  • galactic coordinates (coord_galactic())
  • equatorial coordinates (coord_equatorial())

It includes custom coordinate systems and helper scales for longitude/latitude labels.

Installation

From GitHub:

remotes::install_github("uskovgs/ggsky")

Quick examples

  library(ggplot2)
  library(ggsky)

  N <- 100
  df1 <- data.frame(
    x = runif(N, 0, 360),
    y = runif(N, -90, 90)
  )

  ggplot(df1, aes(x, y)) +
    geom_point() +
    coord_galactic() +
    labs(title = "Galactic coordinate system")

  ggplot(df1, aes(x, y)) +
    geom_point() +
    labs(title = "Equatorial coordinate system") +
    coord_equatorial()

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("ggsky")

0.1.0 by Grigory Uskov, 7 months ago


https://uskovgs.github.io/ggsky/


Report a bug at https://github.com/uskovgs/ggsky/issues


Browse source code at https://github.com/cran/ggsky


Authors: Grigory Uskov [aut, cre, cph] (ORCID:


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports ggplot2, grid

Suggests knitr, rmarkdown


See at CRAN