{"id":13858184,"url":"https://github.com/ytdai/easySVG","last_synced_at":"2025-07-13T23:31:33.120Z","repository":{"id":56937381,"uuid":"108088157","full_name":"ytdai/easySVG","owner":"ytdai","description":"[R package] An Easy SVG Element Generator","archived":false,"fork":false,"pushed_at":"2018-12-10T14:08:24.000Z","size":45,"stargazers_count":11,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-28T07:04:19.781Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ytdai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-24T06:49:37.000Z","updated_at":"2025-03-22T11:13:36.000Z","dependencies_parsed_at":"2022-08-21T01:00:10.345Z","dependency_job_id":null,"html_url":"https://github.com/ytdai/easySVG","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ytdai/easySVG","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ytdai%2FeasySVG","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ytdai%2FeasySVG/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ytdai%2FeasySVG/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ytdai%2FeasySVG/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ytdai","download_url":"https://codeload.github.com/ytdai/easySVG/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ytdai%2FeasySVG/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265220391,"owners_count":23729804,"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-08-05T03:01:59.555Z","updated_at":"2025-07-13T23:31:28.108Z","avatar_url":"https://github.com/ytdai.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"\n# [![Build Status](https://travis-ci.org/ytdai/easySVG.svg)](https://travis-ci.org/ytdai/easySVG) [![CRAN](http://www.r-pkg.org/badges/version/easySVG)](https://cran.r-project.org/package=easySVG) [![Downloads](http://cranlogs.r-pkg.org/badges/easySVG?color=brightgreen)](http://www.r-pkg.org/pkg/easySVG)\n\neasySVG package\n===============\n\n\u003e An Easy SVG Element Generator\n\n## Introduction \n\nThis package is an easy SVG elements generator. It can easily generate svg elements such as rect, line, circle, ellipse, polygon polyline, text and make group. Also, it can output svg elements into a svg file.\n\n## Installation\n\n### Github\n\n``` r\n# Install the cutting edge development version from GitHub:\n# install.packages(\"devtools\")\ndevtools::install_github(\"ytdai/easySVG\")\n```\n\n## Zip/Tarball\n\n1. Download the appropriate zip file or tar.gz file from Github\n2. Unzip the file and change directories into the easySVG directory\n3. Run `R CMD INSTALL pkg`\n\n## Basic usage\n\n``` r\nlibrary(easySVG)\n\nline.1 \u003c- line.svg(x1 = 50, y1 = 20, x2 = 150, y2 = 20)\nmessage(line.1)\n\nline.2 \u003c- line.svg(x1 = 50, y1 = 40, x2 = 150, y2 = 40, stroke = \"red\", stroke.width = 3)\nmessage(line.2)\n\nrect.1 \u003c- rect.svg(x = 50, y = 60, width = 100, height = 10, fill = \"blue\")\nmessage(rect.1)\n\nrect.2 \u003c- rect.svg(x = 50, y = 80, width = 100, height = 5, fill = \"yellow\", stroke = \"none\")\nmessage(rect.2)\n\ncircle.1 \u003c- circle.svg(cx = 80, cy = 100, r = 10, fill = \"blue\")\nmessage(circle.1)\n\ncircle.2 \u003c- circle.svg(cx = 120, cy = 100, r = 5, fill = \"red\", stroke = \"none\")\nmessage(circle.2)\n\nellipse.1 \u003c- ellipse.svg(cx = 100, cy = 120, rx = 20, ry = 5, fill = \"blue\")\nmessage(ellipse.1)\n\npoints \u003c- matrix(c( 50, 100, 120, 140, 135, 145), nrow = 3, ncol = 2)\n\npolygon.1 \u003c- polygon.svg(points = points, fill = \"green\", stroke = \"none\")\nmessage(polygon.1)\n\npoints \u003c- matrix(c( 50, 100, 120, 160, 155, 165), nrow = 3, ncol = 2)\n\npolyline.1 \u003c- polyline.svg(points = points)\nmessage(polyline.1)\n\ntext \u003c- c(\"line.1\", \"line.2\", \"rect.1 - rect.2\",\n          \"circle.1\", \"circle.2\", \"ellipse.1\",\n          \"polygon.1\", \"polyline.1\")\n\ntext.elements \u003c- lapply(1:length(text), \n                        function(x) get.text.svg(x = 10, y = 20*x, text.content = text[x], font.size = 6))\n\ntext.elements \u003c- unlist(text.elements)\n\ncontent \u003c- list(line.1, line.2, rect.1, rect.2,\n                circle.1, circle.2, ellipse.1,\n                polygon.1, polyline.1, text.elements)\npack.svg(width = 200, height = 200, pack.content = content, output.svg.name = \"eleSVG.svg\")\n```\n\n![](https://github.com/ytdai/easySVG/blob/master/vignettes/eleSVG.svg)\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fytdai%2FeasySVG","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fytdai%2FeasySVG","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fytdai%2FeasySVG/lists"}