Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 18

Click to edit Master title style

programming

Presented by Kamran Rahimov1


Agenda
Week 1 Week 2 Week 3
• Types of variables • Fundamentals of R • Data frames
• Using variables • Functions and Packages • Introduction to qplot()
• The “While” loop • Matrices • Visualizing with qplot()
• The “For” Loop • Naming Dimensions • Advanced visualizing with
• • Matplot ggplot2
The “If” statement
• Subsetting

2
Types of variables

3
While Loop and For
Loop

4
If and If else
statement

5
Vector
s
• Vector is a basic data structure in R that
contains the element of similar type.
These data types in R can be logical,
integer, double, character, complex or
raw. With the help of the typeof()
function, you can find out a
vector's data-type. One more significant
property of the R vector is its length.

6
Matrice
s
• Matrices are the R objects in which the
elements are arranged in a two-
dimensional rectangular layout. They
contain elements of the same atomic
types. Though we can create
a matrix containing only characters or
only logical values, they are not of much
use.

7
Matplo
t

8
Adding Legend to
matplot

9
Graphic
s

10
Introduction to qplot()

11
Structure of Graphics

12
Aesthetics

13
Geometry

14
Facets

15
Facet
s

16
Themes

17
Thank You !!

You might also like