Displaying 8 results from an estimated 8 matches for "begin_src".
2009 Dec 04
2
[ggplot2] Wind rose orientation
...the plot is
shifted clockwise, but past the point where north is straight up. How
to get north straight up?
I've read the book (very nice) and have skimmed through the
documentation without finding what I need. Any help much appreciated.
Here is the code from my Org-babel session:
#+begin_src R :session
library(ggplot2)
wind.data <- read.csv("pmrf_windrose_info_new.csv")
wind <- ggplot(wind.data, aes(x = degree, y = time, fill = wind))
wind.bar <- wind + geom_bar(stat = "identity")
wind.bar + coord_polar()
#+end_src
All the best,
Tom
Thomas...
2010 Feb 14
4
Feature Request: Multiline Comments
Hello,
Is it possible to extend the R lexer/parser to include multiline comments like
/*
acomment
*/
?
This way I can integrate emacs org-mode with my R code, so that I can
have a table of contents,
section folding, html-output of source etc.
e.g
/*
* Display Code
*/
#+BEGIN_SRC R
foo <- function(...){
stuff
}
#+end_src
and so on .
Thanks
Saptarshi
2012 Aug 30
1
segfault in gplots::heatmap.2
...the segfault on my
machine.
The offending dataset is quite big, so instead of posting it here I put
it here: https://gist.github.com/3523761. Please put it into offending.txt to
make the code below working.
This is the example. Note, that without loading 'XLConnect' this works
nicely.
#+begin_src R
library("gplots")
library("XLConnect") # any of XLConnect, venneuler, xlsx case a segfault
offending <- dget("offending.txt")
heatmap.2(x=offending)
#+end_src
Interestingly, I get a segfault when loading any of c("XLConnect",
"venneuler&...
2012 Aug 30
2
segfault in gplots::heatmap.2
...the segfault on my
machine.
The offending dataset is quite big, so instead of posting it here I put
it here: https://gist.github.com/3523761. Please put it into offending.txt to
make the code below working.
This is the example. Note, that without loading 'XLConnect' this works
nicely.
#+begin_src R
library("gplots")
library("XLConnect") # any of XLConnect, venneuler, xlsx case a segfault
offending <- dget("offending.txt")
heatmap.2(x=offending)
#+end_src
Interestingly, I get a segfault when loading any of c("XLConnect",
"venneuler&...
2012 Aug 30
2
segfault in gplots::heatmap.2
...the segfault on my
machine.
The offending dataset is quite big, so instead of posting it here I put
it here: https://gist.github.com/3523761. Please put it into offending.txt to
make the code below working.
This is the example. Note, that without loading 'XLConnect' this works
nicely.
#+begin_src R
library("gplots")
library("XLConnect") # any of XLConnect, venneuler, xlsx case a segfault
offending <- dget("offending.txt")
heatmap.2(x=offending)
#+end_src
Interestingly, I get a segfault when loading any of c("XLConnect",
"venneuler&...
2016 Aug 03
0
Crash after connection close when callback is in progress
...p (arg=0x0) at crash.c:8
__PRETTY_FUNCTION__ = "loop"
#v-
And the state of cbList:
#v+
>>> print *cbList
$2 = {
nextID = 11419456,
count = 1,
callbacks = 0x0
}
#v-
I have another thread, but it is just sleeping when the crash happens.
Here is the source code:
#+begin_src c
#include <stdio.h>
#include <unistd.h>
#include <assert.h>
#include <pthread.h>
#include <libvirt/libvirt.h>
void* loop(void *arg) {
while (1) {
assert (virEventRunDefaultImpl() >= 0);
}
return NULL;
}
void callback(virConnectPtr conn, virDom...
2013 Mar 20
1
behaviour of formula objects and environment inside functions
...ide a
function with an empty environment. I tried several versions (see
below), and one of them seemed to work, but I dont understand why there
is a difference between .GlobalEnv and the environment inside a
function. I would be greatful for any reference or explanation or
advice.
Thanks
Thomas
#+BEGIN_SRC R :results output raw :exports results :session *R* :cache yes
test0 <- function(x){
x <- rnorm(1000000)
out <- list()
out$f <- as.formula(u~b,env=NULL)
out
}
test1 <- function(x){
x <- rnorm(1000000)
out <- list(f=formula(u~b))
environment(...
2010 Oct 15
0
nomianl response model
...back to the table to edit, then rerun R, ...
I append an example below.
There is a load of tutorial info at
http://orgmode.org/worg/org-tutorials/index.php
HTH,
Chuck
#+begin_example
#+tblname: simpleDF
| a | b | c |
|---+---+---|
| 1 | 2 | 3 |
| 5 | 4 | 2 |
|---+---+---|
#+end_example
#+begin_src R :var df=simpleDF :results output :colnames yes
summary( df )
#+end_src
#+results:
: a b c
: Min. :1 Min. :2.0 Min. :2.00
: 1st Qu.:2 1st Qu.:2.5 1st Qu.:2.25
: Median :3 Median :3.0 Median :2.50
: Mean :3 Mean :3.0 Mean :2.50
:...