Displaying 20 results from an estimated 5000 matches similar to: "Calling Gnuplot from R"
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
2010 Sep 09
6
Reproducible research
I am investigating some approaches to reproducible research. I need in
the end to produce .html or .doc or .docx. I have used hwriter in the
past but have had some problems with verbatim output from R. Tables are
also not particularly convenient.
I am interested in R2HTML and R2wd in particular, and possibly odfWeave.
Does anyone have sample documents using any of these approaches which
2010 Dec 07
5
LaTeX, MiKTeX, LyX: A Guide for the Perplexed
Hello Everyone,
Been learning R over the past several months. Read several books and have learned a great deal about data manipulation, statistical analysis, and graphics.
Now I want to learn how to make nice looking documents and about "literate programming." My understanding is that R users normally do this using LaTeX, MiKTeX, LyX, etc. in conjuction with Sweave. An alternative
2012 Oct 16
5
uniq -c
I need an analogue of "uniq -c" for a data frame.
xtabs(), although dog slow, would have footed the bill nicely:
--8<---------------cut here---------------start------------->8---
> x <- data.frame(a=1:32,b=1:32,c=1:32,d=1:32,e=1:32)
> system.time(subset(as.data.frame(xtabs( ~. , x )), Freq != 0 ))
user system elapsed
12.788 4.288 17.224
--8<---------------cut
2008 Aug 22
1
R and GNUPLOT
Hello,
I am trying to send commands to GNUPLOT to load a .plt file that was generated with a C++ software module called with R, and to replot.
I am able to open the program with shell.exec (below) but I am at a loss at what do next. Any suggestions??
shell.exec("C:\\ gnuplot \\ bin \\ wgnuplot.exe")
Thanks
2011 Mar 12
2
Gnuplot fit function in R
Hi there,
I'm new to R, coming from gnuplot for the plotting facility...
I'm just wondering if there is a equivalent to the fit function of gnuplot in R?
If not, s there any good resource on fitting gaussians into a curve?
greetings,
Stefan
2008 Mar 26
1
GNUplot to R conversion?
Hi,
I have some scripts creating GNUplot graphs that I would like to
convert to R. It would be a great help if there would be a
reasonable converter that takes over plot commands and initial
settings and put these into R commands (I'm an R beginner and
thus this kind of Kickstart would be helpful).
Remark: Asking Google for "gnuplot to R conversion" or similar things
does not
2004 Jul 05
3
[LLVMdev] Propose change gnuplot options for small picture versions
In current state dates at small version of pictures generated by night
builder script is unreadable
( for example http://llvm.cs.uiuc.edu/testresults/X86/running_loc.png ).
I suggest rotate it to vertical position in small picture versions.
.png file created modified gnuplot script (for comparing) and patch
attached.
"set xlabel 0,-1 " added for solving xlabel and xtics text overlap
2006 May 12
6
text plots?
Is there a way to do text plots in R?
I'd like to do some simple XY plots in R with the output in text
(ascii). For example, with gnuplot I can do the following:
echo 'set terminal dumb ; plot sin(x)' | gnuplot
To generate a simple sin wave. Since I connect to a remote Linux
machine using SSH, being able to generate a rough idea of what a plot
will look like in text would be
2000 May 09
0
[RHBA-2000:021-01] gnuplot
---------------------------------------------------------------------
Red Hat, Inc. Bug Fix Advisory
Synopsis: gnuplot
Advisory ID: RHBA-2000:021-01
Issue date: 2000-05-08
Updated on: 2000-05-08
Product: Red Hat Linux
Keywords: editing, completion, arrows, history, readline
Cross references: N/A
2011 Mar 29
4
Creating 3 vectors that sum to 1
I have 3 vectors: p1, p2, and p3. I would like each vector to be any
possible value between 0 and 1 and p1 + p2 + p3 = 1. I want to graph these
and I've thought about using scatterplot3d(). Here's what I have so far.
library(scatterplot3d)
p1 <- c(1,0,0,.5,.5,0,.5,.25,.25,.34,.33,.33,.8,.1,.1,.9,.05,.05)
p2 <- c(0,1,0,.5,0,.5,.25,.5,.25,.33,.34,.33,.1,.8,.1,.05,.9,.05)
p3 <-
2008 Oct 22
1
Inserting blank lines into a file
Hi,
Should be a quickie:
I want to make a datafile in R for plotting in gnuplot (which has
friendlier 3D plotting options, as far as I can tell). So, I want to
create a file with contents along the lines of
#File begins
0 0 10
0 13 10
0.2 2 10
1 0 10.12
1 1 5
1 2 10
2 0 10
2 1 1
2 2 10
It's probably fairly easy to write the space-separated numbers with
write.table, sink, or similar. But
2006 Apr 18
0
GNUPLOT + Ruby question
Hi,
I need a fairly advanced graphing soultion and it seems as though
GNUPLOT is one of the very few graphing solutions that i can use with
ruby. Java has JFreeChart, which Rocks.
Does anybody have experience with GNUPLOT + Ruby + Windows? If so, what
are the steps to get it all working? Any help is appreciated as I cant
get it working.
Thanks,
Chris
--
Posted via
2002 Oct 31
0
GNUPLOT
Hi,
I advertised gnuplot as a better alternative to the general
graphing program. It came to my knowledge, that the website
I have sent to this list is dead -- the correct one is
http://www.gnuplot.info.
Matej
--
Matej Cepl, matej at ceplovi.cz, PGP ID# D96484AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
There is no reason to suppose that most human beings are engaged
in
2003 May 29
4
Postscript query: plotting long vectors
Hi,
I have a query about the maximum length of vector that can be plotted
in one go in a postscript driver. Try the following code (in 1.7.0;
version details below):
t <- seq(from=0, to=4*pi, length=200000)
y <- sin(t)
postscript(file="o.ps")
plot(t, y, type="l")
dev.off()
If I view the postscript file o.ps in "gv", it takes many seconds
before eventually
2004 Sep 10
1
Documentation Bug
Okay, going to try this one more time with pine (the GnuPG signing from
the Enigmail plugin for Thunderbird keeps getting rejected by
sourceforge). Right.
Anyway, the documentation (in several places) says the analyze option to
use GNUplot is "--residual-gnuplot", when the code actually checks for
"--residual-gnu-plot"....extra hyphen. i checked this late last night, but
2000 Jan 31
1
Interest in R plotting capabilities
I'm a scheme and C user generally, I'm a bit wary of the large FORTRAN
content of the R language but aside from that issue it seems nice and simple
and easy to use.
What I want to do is find some GPL software to replace gnuplot,
and since R does all the calculating stuff that gnuplot does (probably
R is faster though I haven't tested) plus R has quite decent
plotting capabilities I
2006 Nov 14
1
running R without X11
Hello,
I'm trying to run R from a webserver, which doesn't have an X server,
and produce pngs to go on a webpage, is this possible?
I'm doing it in gnuplot with
gnuplot> set term png
gnuplot> set output
With $DISPLAY unset, I get the following error from R:
> png()
Error in X11(paste("png::", filename, sep = ""), width, height,
pointsize, :
2012 Jul 17
3
Finding the column with the maximum value by row
Hi,
Let's say I have the following data:
> a=matrix(c(1,2,4,4,2,1,1,2,4),nrow=3,byrow=T)
> a
[,1] [,2] [,3]
[1,] 1 2 4
[2,] 4 2 1
[3,] 1 2 4
What syntax should I use to get R to tell me the column that corresponds to
the maximum value for each row?
For my example, I would like to get a vector that says 3, 1, 3 because the
maximum value for row 1 is
2011 Mar 30
6
Quick recode of -999 to NA in R
Hi,
I am trying to write a loop to recode my data from -999 to NA in R. What's
the most efficient way to do this? Below is what I'm presently doing, which
is inefficient. Thanks,
Chris
dat0 <- read.table("time1.dat")
colnames(dat0) <- c("e1dq", "e1arcp", "e1dev", "s1prcp", "s1nrcp", "s1ints",