{"id":19857450,"url":"https://github.com/stscl/geocn_logo","last_synced_at":"2026-05-11T01:13:00.499Z","repository":{"id":252352446,"uuid":"837318886","full_name":"stscl/geocn_logo","owner":"stscl","description":"Logo for R package geocn","archived":false,"fork":false,"pushed_at":"2024-10-06T07:12:49.000Z","size":777,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-11T14:18:44.503Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stscl.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-02T17:32:13.000Z","updated_at":"2024-12-11T03:29:50.000Z","dependencies_parsed_at":"2024-08-09T07:49:53.133Z","dependency_job_id":"4da88c76-b21f-4a5b-bca3-c906626ea10e","html_url":"https://github.com/stscl/geocn_logo","commit_stats":null,"previous_names":["spatlyu/geocn_logo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stscl%2Fgeocn_logo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stscl%2Fgeocn_logo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stscl%2Fgeocn_logo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stscl%2Fgeocn_logo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stscl","download_url":"https://codeload.github.com/stscl/geocn_logo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241246186,"owners_count":19933307,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T14:18:42.507Z","updated_at":"2026-05-11T01:12:55.463Z","avatar_url":"https://github.com/stscl.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n``` r\n# devtools::install('SpatLyu/geocn')\n\nlibrary(sf)\nlibrary(ggplot2)\nlibrary(geocn)\n\nprovince = load_cn_province()\ntenline = load_cn_tenline()\ncn_border = load_cn_border()\nload_cn_landcoast() |\u003e \n  st_centroid() |\u003e \n  st_coordinates() -\u003e center\nlon = center[1]\nlat = center[2]\n\northo= paste0('+proj=ortho +lat_0=', lat, ' +lon_0=', lon,\n              ' +x_0=0 +y_0=0 +a=6371000 +b=6371000 +units=m +no_defs')\ncircle = suppressMessages(\n  sf::st_point(x = c(0, 0)) %\u003e%\n    sf::st_buffer(dist = 3.8e6) %\u003e%\n    sf::st_sfc(crs = ortho)) \nworld = load_world_coastline() |\u003e \n  st_transform(st_crs(ortho)) |\u003e \n  st_intersection(circle)\n\nggplot() +\n  geom_sf(data = circle,colour=\"black\",fill=\"transparent\") +\n  geom_sf(data = world,fill=\"grey80\",colour=\"grey80\") +\n  geom_sf(data = province,fill = \"transparent\",size=.1,color=\"grey\") + \n  geom_sf(data = cn_border,size = 1.2,color=\"red\") +\n  ggfx::with_outer_glow(geom_sf(data = cn_border,\n                                lwd = .3,\n                                color = 'red'),\n                        colour = \"#9d98b7\",\n                        sigma = 5,\n                        expand = 3.5) +\n  coord_sf(crs = ortho) +\n  theme_void() -\u003e cn\n\nggsave(filename = './cn.png',plot = cn,\n       dpi = 120,bg = 'transparent',\n       width = 3.2,height = 3.2)\n\nlibrary(showtext)\nshowtext_auto(enable = TRUE)\nfont_add(\"ShineTypewriter\", regular = \"./ShineTypewriter-lgwzd.ttf\")\nlibrary(hexSticker)\nlibrary(magick)\n\nsticker(\n  subplot = \"./cn.png\",\n  s_x = .995,\n  s_y = 1.02,\n  s_width = .75,\n  s_height = .75,\n  package = \"geocn\",\n  p_family = \"ShineTypewriter\",\n  p_size = 25,\n  p_color = ggplot2::alpha(\"#3e3221\",.9),\n  p_x = 1.02,\n  p_y = 1.01,\n  dpi = 300,\n  asp = 1,\n  h_size = 1.55,\n  h_color = ggplot2::alpha(\"#3e3221\",.75),\n  h_fill = '#ffffff',\n  white_around_sticker = F,\n  url = \"https://stscl.github.io/geocn\",\n  u_color = ggplot2::alpha(\"#3e3221\",1),\n  u_size = 5.25,\n  filename = \"geocn_logo.png\"\n)\n\nimage_read('./geocn_logo.png') |\u003e \n  image_resize(\"240x278\")|\u003e \n  image_write('./geocn_logo.png')\n```\n\n![](./geocn_logo.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstscl%2Fgeocn_logo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstscl%2Fgeocn_logo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstscl%2Fgeocn_logo/lists"}