Skip to content

cran/ggsky

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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()

About

❗ This is a read-only mirror of the CRAN R package repository. ggsky — Galactic and Equatorial Coordinate Implementation for 'ggplot2'. Homepage: https://uskovgs.github.io/ggsky/ Report bugs for this package: https://github.com/uskovgs/ggsky/issues

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages