Advertisement
chak8870

Boxplot-scatterplot error-RKward

Apr 21st, 2011
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
R 6.04 KB | None | 0 0
  1. local({
  2. ## Prepare
  3. ## Compute
  4. ## Print result
  5. data_list <- list (test[["MeJA"]])      #convert single sample variables to list
  6. rk.header ("Boxplot", list ("Variable(s)", rk.get.description (test[["MeJA"]], paste.sep=", ")))
  7. rk.graph.on()
  8. try (boxplot (data_list, notch = FALSE, outline = TRUE, horizontal = FALSE)) #actuall boxplot function
  9. rk.graph.off ()
  10. })
  11. .rk.rerun.plugin.link(plugin="rkward::box_plot", settings="mean.state=\nnames_exp.text=names (x)\nnames_mode.string=default\nnotch.state=FALSE\norientation.string=FALSE\noutline.state=TRUE\nplotoptions.add_grid.state=0\nplotoptions.asp.real=0.00\nplotoptions.main.text=\nplotoptions.pointcolor.color.string=\nplotoptions.pointtype.string=\nplotoptions.sub.text=\nplotoptions.xaxt.state=\nplotoptions.xlab.text=\nplotoptions.xlog.state=\nplotoptions.xmaxvalue.text=\nplotoptions.xminvalue.text=\nplotoptions.yaxt.state=\nplotoptions.ylab.text=\nplotoptions.ylog.state=\nplotoptions.ymaxvalue.text=\nplotoptions.yminvalue.text=\nsd.state=\nx.available=test[[\\\"MeJA\\\"]]", label="Run again")
  12. .rk.make.hr()
  13. Error in file(file, ifelse(append, "a", "w")) :
  14.   cannot open the connection
  15. Calls: local ... eval -> eval -> eval -> eval -> rk.header -> sink -> file
  16. In addition: Warning message:
  17. In file(file, ifelse(append, "a", "w")) :
  18.   cannot open file '/rk_out.html': Permission denied
  19. Error in file(file, ifelse(append, "a", "w")) :
  20.   cannot open the connection
  21. Calls: .rk.cat.output -> cat -> file
  22. In addition: Warning message:
  23. In file(file, ifelse(append, "a", "w")) :
  24.   cannot open file '/rk_out.html': Permission denied
  25. Error in file(file, ifelse(append, "a", "w")) :
  26.   cannot open the connection
  27. Calls: rk.print.literal -> cat -> file
  28. In addition: Warning message:
  29. In file(file, ifelse(append, "a", "w")) :
  30.   cannot open file '/rk_out.html': Permission denied
  31. An unspecified error occurred while running the command.
  32. Error in file(file, ifelse(append, "a", "w")) :
  33.   cannot open the connection
  34. Calls: .rk.rerun.plugin.link -> .rk.cat.output -> cat -> file
  35. In addition: Warning message:
  36. In file(file, ifelse(append, "a", "w")) :
  37.   cannot open file '/rk_out.html': Permission denied
  38. Error in file(file, ifelse(append, "a", "w")) :
  39.   cannot open the connection
  40. Calls: .rk.cat.output -> cat -> file
  41. In addition: Warning message:
  42. In file(file, ifelse(append, "a", "w")) :
  43.   cannot open file '/rk_out.html': Permission denied
  44. Error in file(file, ifelse(append, "a", "w")) :
  45.   cannot open the connection
  46. Calls: rk.print.literal -> cat -> file
  47. In addition: Warning message:
  48. In file(file, ifelse(append, "a", "w")) :
  49.   cannot open file '/rk_out.html': Permission denied
  50. An unspecified error occurred while running the command.
  51. local({
  52. ## Prepare
  53. ## Compute
  54. Xvars <- list(test[["Treatment"]])
  55. Yvars <- list(test[["MeJA"]])
  56.  
  57. if (length(Xvars) != length(Yvars)) {
  58.     stop("Unequal number of X and Y variables given")
  59. }
  60. # find range of X/Y values needed
  61. Xrange <- range (c (Xvars), na.rm=TRUE)
  62. Yrange <- range (c (Yvars), na.rm=TRUE)
  63.  
  64. type <- rep (c ('p'), length.out=length (Xvars));
  65. col <- rep ('black', length.out=length (Xvars));
  66. cex <- rep (1, length.out=length (Xvars));
  67. pch <- rep (1, length.out=length (Xvars));
  68. ## Print result
  69. rk.header ("Scatterplot", parameters = list (
  70.     "X variables"=paste (rk.get.description (test[["Treatment"]]), collapse=", "),
  71.     "Y variables"=paste (rk.get.description (test[["MeJA"]]), collapse=", ")))
  72.  
  73. rk.graph.on()
  74.  
  75. try ({
  76.     # make frame and axes
  77.     plot(Xrange, Yrange, type="n")
  78.    
  79.     # plot variables one X/Y pair at a time
  80.     for (i in 1:length(Xvars)) {
  81.         points (
  82.             Xvars[[i]],
  83.             Yvars[[i]],
  84.             type = type[[i]],
  85.             col = col[[i]],
  86.             cex = cex[[i]],
  87.             pch = pch[[i]]
  88.         )
  89.     }
  90. })
  91.  
  92. rk.graph.off()
  93. })
  94. .rk.rerun.plugin.link(plugin="rkward::scatterplot", settings="cex.text=1\ncol.text='black'\ncolor.string=all\nisCex.string=all\nisPch.string=all\npch.text=1\nplotoptions.add_grid.state=0\nplotoptions.asp.real=0.00\nplotoptions.main.text=\nplotoptions.pointcolor.color.string=\nplotoptions.pointtype.string=\nplotoptions.sub.text=\nplotoptions.xaxt.state=\nplotoptions.xlab.text=\nplotoptions.xlog.state=\nplotoptions.xmaxvalue.text=\nplotoptions.xminvalue.text=\nplotoptions.yaxt.state=\nplotoptions.ylab.text=\nplotoptions.ylog.state=\nplotoptions.ymaxvalue.text=\nplotoptions.yminvalue.text=\npointtype.string=p\ntype_mode.string=all\nx.available=test[[\\\"Treatment\\\"]]\ny.available=test[[\\\"MeJA\\\"]]", label="Run again")
  95. .rk.make.hr()
  96. Error in file(file, ifelse(append, "a", "w")) :
  97.   cannot open the connection
  98. Calls: local ... eval -> eval -> eval -> eval -> rk.header -> sink -> file
  99. In addition: Warning message:
  100. In file(file, ifelse(append, "a", "w")) :
  101.   cannot open file '/rk_out.html': Permission denied
  102. Error in file(file, ifelse(append, "a", "w")) :
  103.   cannot open the connection
  104. Calls: .rk.cat.output -> cat -> file
  105. In addition: Warning message:
  106. In file(file, ifelse(append, "a", "w")) :
  107.   cannot open file '/rk_out.html': Permission denied
  108. Error in file(file, ifelse(append, "a", "w")) :
  109.   cannot open the connection
  110. Calls: rk.print.literal -> cat -> file
  111. In addition: Warning message:
  112. In file(file, ifelse(append, "a", "w")) :
  113.   cannot open file '/rk_out.html': Permission denied
  114. An unspecified error occurred while running the command.
  115. Error in file(file, ifelse(append, "a", "w")) :
  116.   cannot open the connection
  117. Calls: .rk.rerun.plugin.link -> .rk.cat.output -> cat -> file
  118. In addition: Warning message:
  119. In file(file, ifelse(append, "a", "w")) :
  120.   cannot open file '/rk_out.html': Permission denied
  121. Error in file(file, ifelse(append, "a", "w")) :
  122.   cannot open the connection
  123. Calls: .rk.cat.output -> cat -> file
  124. In addition: Warning message:
  125. In file(file, ifelse(append, "a", "w")) :
  126.   cannot open file '/rk_out.html': Permission denied
  127. Error in file(file, ifelse(append, "a", "w")) :
  128.   cannot open the connection
  129. Calls: rk.print.literal -> cat -> file
  130. In addition: Warning message:
  131. In file(file, ifelse(append, "a", "w")) :
  132.   cannot open file '/rk_out.html': Permission denied
  133. An unspecified error occurred while running the command.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement