User:Teemu R: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 1: | Line 1: | ||
Teemu Rintala | Teemu Rintala | ||
THL | THL | ||
==R code test== | ==R code test== | ||
<rcode graphics=1> | |||
<rcode | |||
> | |||
library(OpasnetUtils) | library(OpasnetUtils) | ||
library(ggplot2) | |||
test <- data.frame(a=1:4, b = letters[1:4]) | |||
oprint(test) | oprint(test) | ||
ggplot(test, aes(x = b, y = a, fill= b)) + geom_bar(stat = "identity") | |||
cat("asdasadadd\n") | |||
test <- runif(1e7) | |||
qplot(test) | |||
</rcode> | </rcode> | ||
<rcode embed=1 name="embedded" label="embed run" graphics=1> | |||
library(OpasnetUtils) | |||
library(ggplot2) | |||
test <- data.frame(a=1:4, b = letters[1:4]) | |||
oprint(test) | |||
ggplot(test, aes(x = b, y = a, fill= b)) + geom_bar(stat = "identity") | |||
cat("asdasadadd\n") | |||
</rcode> | |||
aaaaa |