This repository contains R programs that generate various types of charts and plots, commonly used for data visualization. The visualizations include:
- Bar Charts
- Plots
- Scatterplots
- Stacked Frequency Bar Charts
- Stacked Relative Frequency Bar Charts
- Requirements
- Installation
- Bar Charts
- Plots
- Scatterplots
- Stacked Frequency Bar Charts
- Stacked Relative Frequency Bar Charts)
- Contributing
- License
- R version 3.6 or above
- The following R packages must be installed for data visualization:
ggplot2
dplyr
scales
You can install the required libraries using the following commands:
install.packages("ggplot2")
install.packages("dplyr")
install.packages("scales")
-
Clone the repository:
git clone https://github.com/stephenombuya/Data-Visualization-with-R cd Data-Visualization-with-R
-
Open RStudio or your preferred R environment and set the working directory to the project folder.
-
Install the required packages as mentioned in the Requirements section.
Contributions are welcome! If you would like to improve or expand on the existing charts, follow these steps:
-
Fork the repository.
-
Create a new branch (git checkout -b feature-branch).
-
Make your changes.
-
Commit your changes (git commit -m 'Add new feature').
-
Push to the branch (git push origin feature-branch).
-
Create a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.