Difference between revisions of "OpasnetUtils/Drafts"

From Testiwiki
Jump to: navigation, search
(Answer)
(Answer)
Line 15: Line 15:
 
  objects.latest("Op_en6007", code_name = "answer")
 
  objects.latest("Op_en6007", code_name = "answer")
  
<rcode name="answer" embed=0 store=1>
+
<rcode name="answer" embed=1 store=1>
  
 
library(OpasnetUtils)
 
library(OpasnetUtils)
Line 46: Line 46:
 
plo <- ggplot(ova@output, aes_string(x = x, fill = fill, weight = weight)) +
 
plo <- ggplot(ova@output, aes_string(x = x, fill = fill, weight = weight)) +
 
theme_gray(base_size = base_size)   
 
theme_gray(base_size = base_size)   
if(any(ova@output[[weight]] > 0)) {
+
if(any(ova@output[[weight]] >= 0)) {
 
plo <- plo + geom_bar(
 
plo <- plo + geom_bar(
data = subset(ova@output, ova@output[[weight]] > 0),
+
data = subset(ova@output, ova@output[[weight]] >= 0),
 
position = "stack",
 
position = "stack",
 
binwidth = binwidth
 
binwidth = binwidth

Revision as of 15:48, 6 September 2015



Question

Which functions are so useful that they should be taken into OpasnetUtils package? This page contains draft function which will be included when they are good enough and found important.

Answer

Call the objects stored by this code from another rode with this command:

objects.latest("Op_en6007", code_name = "answer")

+ Show code

See also

References


Related files

<mfanonymousfilelist></mfanonymousfilelist>