Pivot Table
Pivot Table
Pivot table
Box Plot
The method to summarize a set of data that is measured
using an interval scale is called a box and whisker plot
Outlier: The data that falls on the far left or right side of the
ordered data is tested to be the outliers. Generally, the outliers
fall more than the specified distance from the first and third
quartile.
This is the easiest part. You need to find the largest and
smallest data values.
✔ The box and whisker plot shows that 50% of the students
have scores between 70 and 88 points.
summary(mtcars)
dim(mtcars)
names(mtcars)
hist(mtcars$mpg,
col='steelblue',
main='Histogram',
xlab='mpg',
ylab='Frequency')
boxplot(mtcars$mpg,
main='Distribution of mpg values',
ylab='mpg',
col='steelblue',
border='black')
plot(mtcars$mpg, mtcars$wt,
col='steelblue',
main='Scatterplot',
xlab='mpg',
ylab='wt',
pch=19)
Pivot table
Syntax:
df %>% group_by( grouping_variables) %>% summarize( label =
aggregate_fun() )
Parameter:
df: determines the data frame in use.
grouping_variables: determine the variable used to group data.
aggregate_fun(): determines the function used for summary. for
example, sum, mean, etc.
1x 374
2y 160
3z 104
1x 125.
2y 53.3
3z 34.7