Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. >df=data.frame(num=c(81.16469 ,11.59219 ,29.7309 ,86.03547 ,16.42667 ,33.52099 ,26.07814 ,30.91522 ,39.49079 ,31.634 ,37.8732 ,20.50268 ,16.9127 ,20.1115 ,23.74309 ,22.30444 ,24.21399 ,27.30867 ,39.07071 ,14.81049 ,21.42116 ,23.30437 ,17.94871 ,17.50281 ,58.82008 ,20.18478 ,10.65572 ,37.97092 ,25.16336 ,35.69668))
  2. quantile(df$num)
  3. 0% 25% 50% 75% 100%
  4. 10.65572 20.12982 24.68867 35.15276 86.03547
  5. > boxplot(df$num)
  6. > IQR(df$num)*1.5+quantile(df$num)[4]
  7. 75%
  8. 57.68716
  9. > ggplot(df,aes("x",num))+geom_boxplot()
  10. > boxplot(df$num)
  11.  
  12. > boxplot.stats(df$num)$stats
  13. [1] 10.65572 20.11150 24.68867 35.69668 58.82008
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement