Amazing technological breakthrough possible @S-Logix pro@slogix.in

Office Address

  • #5, First Floor, 4th Street Dr. Subbarayan Nagar Kodambakkam, Chennai-600 024 Landmark : Samiyar Madam
  • pro@slogix.in
  • +91- 81240 01111

Social List

How to implement Stem- Leaf Plot in R?

Description

To implement the stem- leaf plot using R programming.

Process

Stem and Leaf plot:

  Each numeric value is split into a stem (First digit(s) ) and a leaf (last Digit).

   57 will split into 5 as stem and 7 as leaf.

   R Function : stem()

Sapmle Code

#Stem and Leaf Plot
#Input Data
input<-ChickWeight$weight
print(input)

#Stem Function
stem(input)

#Adding Scale to the plot
stem(input,scale=2)

#Adding Width to the plot
stem(input,scale=2, width= 20)

Screenshots
implement Stem- Leaf Plot in R
Stem Function
Stem and Leaf Plot