{"id":13858097,"url":"https://github.com/ardata-fr/mschart","last_synced_at":"2025-07-13T23:31:10.232Z","repository":{"id":44705479,"uuid":"97521190","full_name":"ardata-fr/mschart","owner":"ardata-fr","description":":bar_chart: mschart: office charts from R","archived":false,"fork":false,"pushed_at":"2024-05-04T09:30:30.000Z","size":3507,"stargazers_count":132,"open_issues_count":15,"forks_count":25,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-11-22T16:39:12.216Z","etag":null,"topics":["cran","ms-office-documents","office","powerpoint","r","word"],"latest_commit_sha":null,"homepage":"https://ardata-fr.github.io/mschart","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/ardata-fr.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","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":"2017-07-17T20:51:34.000Z","updated_at":"2024-11-10T13:01:03.000Z","dependencies_parsed_at":"2024-04-26T12:28:11.133Z","dependency_job_id":"6d3f8607-ef06-4f8c-a2b1-0ff4ba96a057","html_url":"https://github.com/ardata-fr/mschart","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ardata-fr/mschart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ardata-fr%2Fmschart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ardata-fr%2Fmschart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ardata-fr%2Fmschart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ardata-fr%2Fmschart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ardata-fr","download_url":"https://codeload.github.com/ardata-fr/mschart/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ardata-fr%2Fmschart/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265220259,"owners_count":23729784,"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":["cran","ms-office-documents","office","powerpoint","r","word"],"created_at":"2024-08-05T03:01:56.633Z","updated_at":"2025-07-13T23:31:08.957Z","avatar_url":"https://github.com/ardata-fr.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"---\ntitle: \"mschart R package\"\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, echo = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"README-\"\n)\n```\n\n[![R build status](https://github.com/ardata-fr/mschart/workflows/R-CMD-check/badge.svg)](https://github.com/ardata-fr/mschart/actions)\n[![version](https://www.r-pkg.org/badges/version/mschart)](https://CRAN.R-project.org/package=mschart)\n![cranlogs](https://cranlogs.r-pkg.org/badges/mschart)\n![Active](http://www.repostatus.org/badges/latest/active.svg)\n\n\u003ca href=\"https://github.com/ardata-fr/mschart\"\u003e\u003cimg src=\"man/figures/logo.png\" alt=\"mschart logo\" align=\"right\" /\u003e\u003c/a\u003e \nThe `mschart` package provides a framework for easily create charts for\n'Microsoft PowerPoint' presentations and 'Microsoft Word' documents. It has to\nbe used with package [`officer`](https://davidgohel.github.io/officer/) that\nwill produce the charts in new or existing PowerPoint or Word documents. With\n'Microsoft Charts', the data is integrated into the document and linked to the\nchart. The result can be edited, annotated and resized. If the data is updated\nin the document, the chart is also updated.\n\n## Example\n\nThis is a basic example which shows you how to create a scatter plot.\n\n```{r example}\nlibrary(mschart)\nscatter \u003c-\n  ms_scatterchart(\n    data = iris, x = \"Sepal.Length\",\n    y = \"Sepal.Width\", group = \"Species\"\n  )\nscatter \u003c- chart_settings(scatter, scatterstyle = \"marker\")\n```\n\nThen use package `officer` to send the object as a chart.\n\n```{r eval=FALSE}\nlibrary(officer)\ndoc \u003c- read_pptx()\ndoc \u003c- add_slide(doc, layout = \"Title and Content\", master = \"Office Theme\")\ndoc \u003c- ph_with(doc, value = scatter, location = ph_location_fullsize())\n\nprint(doc, target = \"example.pptx\")\n```\n\nAt any moment, you can type `print(your_chart, preview = TRUE)` to preview the\nchart in a temporary PowerPoint file. This requires to have a PowerPoint Viewer\ninstalled on the machine.\n\n## Installation\n\nYou can get the development version from GitHub:\n\n```{r eval = FALSE}\ndevtools::install_github(\"ardata-fr/mschart\")\n```\n\nOr the latest version on CRAN:\n\n```{r eval = FALSE}\ninstall.packages(\"mschart\")\n```\n\n\n## Contributing to the package\n\n### Bug reports\n\nWhen you file a [bug report](https://github.com/ardata-fr/mschart/issues),\nplease spend some time making it easy for me to follow and reproduce. The more\ntime you spend on making the bug report coherent, the more time I can dedicate\nto investigate the bug as opposed to the bug report.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fardata-fr%2Fmschart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fardata-fr%2Fmschart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fardata-fr%2Fmschart/lists"}