Graphs and Charts in R - shivangivaghela138665-coder/Rprogramming GitHub Wiki

Visualization in R

R provides built-in plotting functions and powerful libraries like ggplot2.


Histogram

x <- c(1,2,2,3,3,3,4,4,4,4)
hist(x)

Scatter Plot
R
plot(c(1,2,3,4), c(2,4,6,8), main="Scatter Plot")