Mini-project focusing on improving visualizations.
The objective of this module project is to recreate a graph from from an undergraduate dissertation titled “The effects of calcium modulators on TDP-43 function and development of a new co-localization protocol in ALS cellular models” using the original data in R, aiming to achieve the following:
- Develop a visualization that improves upon the aesthetics of the existing graph, enhancing its visual appeal and clarity.
- Create a visualization that facilitates the interpretation of the obtained data, offering new insight.
Full project is viewable at https://github.com/carlospzhz/PSY6422_Project.
The current graph lacks the ability to illustrate the distribution of individual data points. This information is crucial for understanding whether the observed increase in TDP-43 inclusions with MP004 is due to a general augmentation of inclusions across all cells or if it’s primarily driven by a rise in the frequency of cells with significantly higher numbers of inclusions. Thus, recreating the graph aims to answer this question.
- figures folder which contains:
- "Average_number_of_Inclusions_4h" - the original figure.
- "NEW_Avg_number_TDP43_inclusions.jpeg" - the final plot produced.
- data folder which contains:
- "codebook.txt" - a codebook for interpretation of the variables.
- "data_project.xlsx" - raw data used for the analysis and processing.
- "processed_data.xlsx" - data processed (long format) in the code used for visualisation.
- index.rmd - RMarkdown file (code)
- index.html - A web page of the markdown file
To run this project, you will need the following software and packages:
Software: R (a programming language and environment for statistical computing and graphics) IDE: RStudio (an integrated development environment for R), or other IDE of your liking (check that it’s compatible with R) R Packages: ‘tidyverse’, ‘ggplot2’, ‘gghalves’, ‘see’ Installation steps Install R
- Download and install R from the CRAN website.
- Follow the installation instructions specific to your operating system.
- (Optional) Download RStudio Desktop from the RStudio download page.
- Install RStudio by following the provided instructions.
- Install Required Packages
- Launch R or RStudio and create a new R script (or open the existing markdown file).
- Copy and paste (or run) the following code found in the "code.R" script to check.
This code can also be found in the markdown file (look for "3.1 Setup and Preparation" and "3.2 Code for Data Visualization" sections). By following these steps, your project environment will be set up with all the necessary software and packages to run the provided R code. This setup will allow you to process the data and generate plots defined in your scripts.