generated from jtr13/cctemplate
-
Notifications
You must be signed in to change notification settings - Fork 78
/
r_vs_matlab_graph.Rmd
21 lines (11 loc) · 1.68 KB
/
r_vs_matlab_graph.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Data Visualization with R ggplot2 vs. Matlab
Yuxin Lin
Matlab is a popular programming language in the area of mathematical computation such as calculus, linear algebra, and matrix manipulation.[1] Also, similar to R, Matlab is a powerful tool for data analytics, machine learning, and data visualization. However, because of its common application domain, most tutorials for plotting with Matlab only introduce how to deal with simple simulated array inputs rather than the data set files.
Motivated by an assignment on analyzing auditory fMRI data with Matlab in an applied machine learning course, the cheatsheet is created for beginners of Matlab programming. The cheat sheet provides codes for plotting graphs that are highly frequently used in the process of data exploration and results visualization, in the language of both R with package ggplot2 and Matlab. Although codes of plotting with Matlab appears very trivial, it should be noted that Matlab differs from R and other programming language in some functions, like the use of histograms and bar plots. Through the side-by-side contrast, the cheat sheet is expected to help people who have experience in R but are not familiar with Matlab plotting have a smooth start.
Link: https://github.com/linlinlin-yx/R-ggplot2-vs-Matlab-Plot/blob/main/r_vs_matlab.pdf
### Reference
[1] https://www.geeksforgeeks.org/differences-between-matlab-and-r-programming-language/
[2] https://www.mathworks.com/help/matlab/creating_plots/types-of-matlab-plots.html
[3] https://www.mathworks.com/help/matlab/matlab_prog/access-data-in-a-table.html
[4] ggplot2 cheatsheet (https://ggplot2.tidyverse.org/#cheatsheet)
[5] edav.info (https://edav.info/spatial-data.html)