Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xuyiqing/panelView
Visualizing Panel Data
https://github.com/xuyiqing/panelView
Last synced: 3 days ago
JSON representation
Visualizing Panel Data
- Host: GitHub
- URL: https://github.com/xuyiqing/panelView
- Owner: xuyiqing
- License: other
- Created: 2018-04-22T21:35:06.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-06-19T22:13:45.000Z (5 months ago)
- Last Synced: 2024-08-02T06:02:20.286Z (3 months ago)
- Language: HTML
- Homepage: https://yiqingxu.org/packages/panelview/
- Size: 2.9 MB
- Stars: 47
- Watchers: 4
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- Changelog: NEWS.html
- License: LICENSE
Awesome Lists containing this project
README
---
output: github_document
---```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```# panelView
[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-green.svg)](https://www.tidyverse.org/lifecycle/#stablel)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![downloads: CRAN](https://cranlogs.r-pkg.org/badges/grand-total/panelView)](https://www.datasciencemeta.com/rpackages)**Authors:** Hongyu Mou (UCLA); [Licheng Liu](https://liulch.github.io/) (MIT); [Yiqing Xu](https://yiqingxu.org/) (Stanford)
**Date:** June 17, 2024
**Repos:** [Github](https://github.com/xuyiqing/panelView) (1.1.18)
[CRAN](https://cran.r-project.org/web/packages/panelView/index.html) (1.1.18)**Examples:** R code used in the tutorial can be downloaded from [here](https://github.com/xuyiqing/panelView/blob/master/examples.R).
---
## Description
**panelView** visualizes panel data. It has three main functionalities:
1. it plots treatment status and missing values in a panel dataset;
2. it plots the temporal dynamics of an outcome variable (or any variable) in a panel dataset;
3. it visualizes bivariate relationships of two variables by unit or in aggregate.## Installation
You can install the up-to-date development version from GitHub:
```{r eval=FALSE}
# if not already installed
install.packages('devtools', repos = 'http://cran.us.r-project.org')# note: "V" is capitalized
devtools::install_github('xuyiqing/panelView')
```You can also install the **panelView** package from CRAN:
```{r eval=FALSE}
install.packages('panelView')
```If you encounter an installation/execution error, please remove the old package and reinstall **panelView**.
```{r eval=FALSE}
remove.packages('panelView')
# or
remove.packages('panelview') # package name "panelview" no longer in use
```## Tutorial & Paper
For example, plot treatment status in a panel dataset:
```{r example, eval=FALSE}
library(panelView)
data(panelView)
panelview(turnout ~ policy_edr + policy_mail_in + policy_motor,
data = turnout, index = c("abb","year"),
xlab = "Year", ylab = "State")
```
Note that "V" in the package name is capitalized while "v" in the function name is not---to be consistent with the Stata version.See the [tutorial](https://yiqingxu.org/packages/panelview/articles/tutorial.html) page for more details.
For a paper version of the tutorial, see [Mou, Liu & Xu (2023)](https://www.jstatsoft.org/article/view/v107i07): "Panel Data Visualization in R (panelView) and Stata (panelview)."
## Report bugs
Please report bugs to **yiqingxu [at] stanford.edu** with your sample code and data file. Much appreciated!