Displaying 20 results from an estimated 800 matches similar to: "bug in pictex() (package:grDevices)"
2006 Mar 29
0
bug in pictex() (package:grDevices) (PR#8727)
> * Prof Brian Ripley <evcyrl at fgngf.bk.np.hx> [2006-03-29 15:39:17 +0100]:
>
> Have you reported this to pictex()'s author?
no, I have no idea who that is.
> Remember that it is a contributed graphics device, and not one r-core
> is maintaining. You could also submit a patch yourself.
>
> There is quite a lot wrong with it, as it has not been more than
>
2011 Feb 16
2
create a data frame with the given column names
how do I create a data frame with the given column names
_NOT KNOWN IN ADVANCE_?
i.e., I have a vector of strings for names and I want to get an _EMPTY_
data frame with these column names.
is it at all possible?
--
Sam Steingold (http://sds.podval.org/) on CentOS release 5.3 (Final)
http://openvotingconsortium.org http://pmw.org.il http://memri.org
http://mideasttruth.com
2007 Sep 24
1
PicTeX output: how to suppress escaping of $ signs and braces?
Dear All,
I'm trying to draw a TeX histogram with the following pair of commands,
pictex(file = "realhisto.tex")
hist(Peaklist$V3,xlab="Height $z/\\ut{mm}$",ylab="Probability density $\\phi{}(z-z_0)/(1/\\ut{mm})$")
However, in the resulting file realhisto.tex, I get, for example
\put {Height \$z/\ut\{mm\}\$} [lB] <0.00pt,0.00pt> at 136.13 9.17
when
2006 May 11
3
cannot turn some columns in a data frame into factors
Hi,
I have a data frame df and a list of names of columns that I want to
turn into factors:
df.names <- attr(df,"names")
sapply(factors, function (name) {
pos <- match(name,df.names)
if (is.na(pos)) stop(paste(name,": no such column\n"))
df[[pos]] <- factor(df[[pos]])
cat(name,"(",pos,"):",is.factor(df[[pos]]),"\n")
2011 Mar 18
1
time series from timed data
Hi,
I have data with multiple sub-second entries:
2011/03/15 09:32:15.035619,-0.403103,1.09664,48.6,126.92,117.32
2011/03/15 09:32:15.069331,-0.39851,1.09874,48.6,126.92,117.32
2011/03/15 09:32:15.289135,-0.402463,1.10084,48.59,126.92,117.32
2011/03/15 09:32:15.296110,-0.450244,1.10063,48.59,126.92,117.32
2011/03/15 09:32:15.451358,-0.438813,1.10273,48.59,126.93,117.32
2011/03/15
2012 Feb 08
4
"unsparse" a vector
Suppose I have a vector of strings:
c("A1B2","A3C4","B5","C6A7B8")
[1] "A1B2" "A3C4" "B5" "C6A7B8"
where each string is a sequence of <column><value> pairs
(fixed width, in this example both value and name are 1 character, in
reality the column name is 6 chars and value is 2 digits).
I need to
2012 Mar 14
2
sum(hist$density) == 2 ?!
> x <- rnorm(1000)
> h <- hist(x,plot=FALSE)
> sum(h$density)
[1] 2 ----------------------------- shouldn't it be 1?!
> h <- hist(x,plot=FALSE, breaks=(-4:4))
> sum(h$density)
[1] 1 ----------------------------- now it's 1. why?!
--
Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) X 11.0.11004000
http://www.childpsy.net/ http://www.memritv.org
2012 Nov 07
3
c weirdness
is there a way to avoid c() appending ".0" and ".1" to seed?
--8<---------------cut here---------------start------------->8---
> c("nons"=1, "seed"=3)
nons seed ## good!
1 3
> c("nons"=1, "seed"=tab[1])
nons seed.0 ## don't want ".0"!
1 2344600
>
2013 Sep 18
2
strsplit with a vector split argument
Hi,
I find this behavior unexpected:
--8<---------------cut here---------------start------------->8---
> strsplit(c("a,b;c","d;e,f"),c(",",";"))
[[1]]
[1] "a" "b;c"
[[2]]
[1] "d" "e,f"
--8<---------------cut here---------------end--------------->8---
I thought that it should be identical to this:
2006 Mar 17
6
removing NA from a data frame
Hi,
It appears that deal does not support missing values (NA), so I need to
remove them (NAs) from my data frame.
how do I do this?
(I am very new to R, so a detailed step-by-step
explanation with code samples would be nice).
Some columns (variables) have quite a few NAs, so I would rather drop
the whole column than sacrifice all the rows (observations) which have
NA in that column.
How do I
2001 Mar 09
1
rotated and/or greek mtext in pictex()?
Greetings-
I'm aware that there's no documentation for pictex available easily (that
is, without purchasing it). I'm wondering if someone can help me with a
simple task. When generating a plot using pictex() from R, one of the
commands I use is
mtext("Dimension 2: L=xxxx", side=2, line=3)
when using X11(), this appears vertically along the Y axis; when using
pictex(), it
2012 Jul 13
1
LiblineaR: read/write model files?
How do I read/write liblinear models to files?
E.g., if I train a model using the command line interface, I might want
to load it into R to look the histogram of the weights.
Or I might want to train a model in R and then apply it using a command
line interface.
--
Sam Steingold (http://sds.podval.org/) on Ubuntu 12.04 (precise) X 11.0.11103000
http://www.childpsy.net/
2012 Oct 07
2
a merge() problem
I know it does not look very good - using the same column names to mean
different things in different data frames, but here you go:
--8<---------------cut here---------------start------------->8---
> x <- data.frame(a=c(1,2,3),b=c(4,5,6))
> y <- data.frame(b=c(1,2),a=c("a","b"))
>
1998 Jan 08
0
R-beta: pictex() under Windows 95
Got an error trying to run the PicTeX graphics driver in Version 0.50 Beta (Sept
29, 1997) of R under Windows 95. When I executed
pictex()
I got the following error message:
Error in device("pictex", as.character(c(file, bg, fg)), c(width, height,
: unable to start device pictex
>
It looks like the command exists but not the code to implement it.
Mark Otto, Biological
2001 Feb 11
0
Bug in pictex output. (PR#845)
Hi everyone,
I have just received a bug from one of my students. It concerns the pictex
command to produce plots in latex format. It seems to add lines on the graph
even in the most simplest cases. For example, try the following quadratic
curve:
plot(1:11,(-5:5)^2,type="b",main="Simple Example Plot")
Now, saving the plot with the following command:
1997 Jul 24
3
R-beta: Pictex and R
Dear R-users
It is me again with my interminables questions...
This time it is about "pictex". I understood that
pictex allows us to put our graph in a latex file
I have try the function:
> pictex (file=...)
and the answer was: "pictex" not found...
Does it mean that it is not an R-function yet?
Thank you for any feedback.
Halima from Leiden
2001 Mar 04
1
diagonal line through plot when using pictex()
Greetings-
I've got some plots I'd like to include in a LaTeX document; specifically,
I'd like to include them via pictex() so I can edit some of the
particulars directly. However, an odd problem is coming up: a diagonal
line is drawn from bottom-left to upper-right when using pictex(). This
does not happen using X11() or postscript() with the same series of
commands.
Any ideas why
2001 Feb 06
2
barplots with pictex
Dear R People,
I want to include a barplot corresponding to a simple discrete probability
distribution in a LaTeX document. I decided to use the pictex
driver. After a certain amount of messing about, I came up the stuff
below. It does not look too bad, however, there is one very obvious piece
of weirdness, ie. the y axis terminates at 0.1 and does not extend down
further. I tried to adjust this
1999 Apr 25
1
pictex
Hi, I am very new to R and trying to bring my plot of residuals to my
LaTex document, and seems as I need some help.
I first tried the example from the help file, e.g.
pictex(file="model1.tex", width=5, height=4)
plot(1:11,(-5:5)^2, type='b', main="Simple Example Plot")
dev.off()
this worked fine in LaTex when I did :
\centerline{\input{Rplots.tex}}
However, with
2011 Feb 15
2
strptime format = "%H:%M:%OS6"
I read a dataset with times in them, e.g., "09:31:29.18761".
I then parse them:
> all$X.Time <- strptime(all$X.Time, format = "%H:%M:%OS6");
and get a vector of NAs (how do I check that except for a visual inspection?)
then I do
> options("digits.secs"=6);
> all$X.Time <- strptime(all$X.Time, format = "%H:%M:%OS");
and it, apparently, works: