Advertisement
Guest User

Untitled

a guest
May 3rd, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. f1<-function(x){
  2.  
  3.  
  4. write.table(as.matrix(summary(x)),file="dane.txt",sep=";",row.names=T)
  5.  
  6. #I want here to make two plots.
  7. png(filename="hist.png")
  8. hist(x)
  9. dev.off
  10.  
  11. dev.cur()
  12. png(filename="density.png")
  13. plot(density(x))
  14. dev.off
  15. }
  16.  
  17. function (which = dev.cur())
  18. {
  19. if (which == 1)
  20. stop("cannot shut down device 1 (the null device)")
  21. .External(C_devoff, as.integer(which))
  22. dev.cur()
  23. }
  24. <bytecode: 0x0000000010dbfaa8>
  25. <environment: namespace:grDevices>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement