小编Ben*_*ats的帖子

根据位置和日期创建星图可视化

背景

我正在尝试根据 R 中给定的位置和日期创建天体地图。

理想情况下,视觉效果应如下所示:

来源

在此输入图像描述

我确实看到了这个博客,它使用了D3 天体图,并且对于创建下面的视觉效果非常有帮助。

library(sf)
library(tidyverse)


theme_nightsky <- function(base_size = 11, base_family = "") {
  
  theme_light(base_size = base_size, base_family = base_family) %+replace% 
    theme(
      # Specify axis options, remove both axis titles and ticks but leave the text in white
      axis.title = element_blank(),
      axis.ticks = element_blank(),
      axis.text = element_text(colour = "white",size=6),
      # Specify legend options, here no legend is needed
      legend.position = "none",
      # Specify background of plotting area
      panel.grid.major = …
Run Code Online (Sandbox Code Playgroud)

r astronomy d3.js r-sf

11
推荐指数
1
解决办法
981
查看次数

标签 统计

astronomy ×1

d3.js ×1

r ×1

r-sf ×1