Displaying 20 results from an estimated 200 matches similar to: "Creating a .png with just an expression() in it"
2011 Mar 13
2
Setting the language of Rs error messages
Hi,
My R has been installed on a Ubuntu linux computer in Germany. The error
messages I get are in German, for example:
In min(magnitudes) : kein nicht-fehlendes Argument f?r min; gebe Inf zur?ck
I would like those to be displayed in English, for pasting them into google.
I tried searching for "R language", which brings me a ton of results
for.. well, the R language :)
"R german
2010 Nov 13
2
how to store a vector of vectors
Hi,
I'm trying to write a function to determine the euclidean distance
between x (one point) and y (a set of n points). How should I pass y to
the function? Until now, I used a matrix like that:
| [,1] [,2] [,3]
[1,] 0 2 1
[2,] 1 1 1
|
Which would pass the points (0,2,1) and (1,1,1) to that function.
However, when I pass x as a normal (column) vector,
2010 Dec 03
1
Passing par()-parameters to many plot()s in a function
Hi,
I am implementing a function which generates about 10 .pdf plots in the
current directory.
I need the graphic to fit into a LaTeX-Presentation-slide, so the outer
margin should be removed (this is the way to do it, right?):
I am having trouble finding out where to put the par command(s). Is one
enough or should I put them before and after /every/ plot() command?
This is how I tried to do
2011 Mar 16
5
R² for non-linear model
Dear List,
how can I obtain the value of r suqared for a non-linear model? For
linear models it can be found in the summary() of the model but for
non-linear models I just don't know. Please help!
Anna
2011 Oct 25
1
R fails when converting units using Hershey-Fonts
I run into some problems when trying to convert units using Hershey-Fonts: R chrashes.
> library(grid)
> label <- "some text"
> pushViewport(viewport(gp=gpar(fontfamily="HersheySerif")))
> convertHeight(stringHeight(label), unitTo="mm")
*** caught segfault ***
address 0xadc838f8, cause 'memory not mapped'
Traceback:
1:
2009 Sep 24
1
unexpected behavior of `[<-` method for class unit.arithmetic
Dear list,
Consider the following,
library(grid)
w = unit.c(unit(1, "in"), unit(2, "in"))
w2 = w + unit(1, "mm")
w[2] <- 0
w2[2] <- 0
convertUnit(w, "mm")
#[1] 25.4mm 0mm
convertUnit(w2, "mm")
#Error in grid.Call("L_convert", x, as.integer(whatfrom),
as.integer(whatto), :
# INTEGER() can only be applied to a
2012 Jun 28
4
Printing a variable in a loop
Dear R Users:
I'm a STATA user converting to R, and I'd like to be to do the following.
#Assign var_1 and var_2 a value
10->var1
20->var2
#Now I'd like to print the values of var_1 and var_2 by looping through
var_1 and var_2 in such a manner:
while(y<3){
print(var_y)
y+1->y
}
In STATA, the "y" appended to " var_" is called the local variable and
2008 Oct 17
1
Using key.opts in Ecdf/labcurve (Hmisc package)
I'm presumably missing something very obvious, but how does one use the
key.opts argument in labcurve (via Ecdf)?
In this example, I want the key to be big and have a blue background, but
it isn't and doesn't.
ch <- rnorm(1000, 200, 40)
sex <- factor(sample(c('female','male'), 1000, TRUE))
Ecdf(~ch, group=sex, label.curves=list(keys=c("f",
2010 May 20
2
multiple 2 by 2 crosstabulations?
Hello,
I have a dataframe (var_1, var_2, ..., var_n) and I would like to export summary statistics to Latex in the form of a table. I want specific summary statistics by crossing numerous variables 2x2 AT ONCE. In each cell I would like sometimes to have the median (Q1 - Q3), or frequency and proportion, etc. CrossTable, xtab, etc... do not allow for multiple 2 by 2 crosstabulation. The table
2008 Apr 15
1
glm syntax question
Hello,
I'm new to R and have a very basic syntax question for the
functionglm. I am using the function glm() to do a regression on a
data set. I want to run this function in a while loop, so I need to be
able to do two things:
(1) I need to be able to have my list of variables in the regression
be based from a variable vector instead of hard code.
(2) I need to be able to collect the
2011 Apr 26
2
grid stringHeight
Dear all,
I'm puzzled by the behavior of stringHeight in the grid package.
Consider the following test,
library(grid)
test <- function(lab="dog", ...){
g1 <- textGrob(lab)
g2 <- rectGrob(height=grobHeight(g1), width=grobWidth(g1))
gg <- gTree(children=gList(g1,g2), ...)
print(c("height:", convertUnit(stringHeight(lab), "mm",
2007 Jul 02
3
Both archs version rpm are installed during update?
During last update packets pidgin and libpurple were updated while "yum
update"-ing
Is it a common and normal thing that both x86_64 and i386 arch rpms are
installed during update? This not the first time.
--
Cheers,
Alexx mailto:alexx187 at gmail.com
2018 Oct 16
2
Comprobar los nombres de columnas entre varios dataframes
Buenas tardes,
Quiero aplicar la función rbind y necesito tener los mismos nombres de
columnas. Como tengo unas 195 variables en cada dataframe, necesito
hacerlo de una forma rápida. Tengo 9 bases de datos y tengo que fusionar
todas. ¿Como puedo comprobar que los nombres de las variables son los
mismos? Y de lo contrario, ¿como detecto las diferencias?
He probado con
2002 Jul 11
1
Samba 2.2.5-1, Error Creating Directories
Hi!
This is a really weird problem, I hope, someone can help me out there.
First of all, I put my smb.conf on the web, you can find it here[0].
The Sambaserver (ESS-LINUX) is just an ordinary workstation (in the
terms of SMB) and uses the PDC (ESS_SERVER) for authentication (see
"password server"-directive).
Nearly everything works fine. Each authenticated user gets his
home-directory
2001 Mar 07
1
CalamusSL 2000 DTP program
Hello,
I tried to install CalamusSL 2000 under wine 20010305 and the installation
itself was successfull. But when I start the program the main window is
very small (120x27) and can't be changed. So the GUI is not visible ...
What can I do to help the maker of the program to find the problem?
And there is another problem with temporary fonts. The program needs some
fonts that will be
2008 Nov 19
1
Buggy trellis.focus() with xyplot ?
Hi:
(Tried to find a bug report about this issue, but was unable to find it, let
me know if this is a known issue)
I have been working on an interface to highlight xyplot panels on mouse
overs in JavaGD but I have stumbled with what seems to be a bug in
trellis.focus.
I am using R 2.8 with lattice 0.17-15
*** To replicate the bug:
1.- display an xyplot. For example, from the xyplot help page:
2009 Mar 21
1
Forestplot () box size question
Hi All,
I have been able to modify the x-axis to start at zero by adding xlow
and xhigh parameters; that was pretty simple. I have been unable to
find the location of the code that would turn off the information
weighting of the box size (I have smaller randomized trials getting
less weight than a much larger non-randomized trial). The function
is forestplot() from rmeta.
Thanks for any
2008 Oct 08
10
Puppet Augeas Plugin
Bryan -- I''m using the puppet augeas plugin at
http://git.et.redhat.com/?p=ace.git;a=blob;f=modules/augeas/plugins/puppet/type/augeas.rb;h=2346c37d724d7607ed4e09b0413700bec2b7cbed;hb=HEAD
I''m running into a behavior that I wouldn''t expect. I''d like to confirm
an entry in sysctl.conf by changing the value if necessary or appending
the key/value if it
2007 Oct 24
1
Rotated viewports in Grid
Hi all,
I'm trying to generate a plot containing a scatterplot, with marginal
densityplots for x and y.
However, when I try to generate a vertical densityplot, I get the
message "warning: can't clip to rotated viewport", and nothing shows
up. I'm probably misunderstanding how viewports are meant to be used,
so if someone could give me a hint, I'd be most grateful.
my
2004 Jun 28
1
text length in grid
Hello! I first would like to compliment the authors of grid on what has been
a wonderfully useful package for me. Now, my question: Is there any way I
can specify the size of some grid.text using grid units?
I must label the regions of a plot. The regions can be either very small or
very large, so I would like to label each by fitting its text to the size of
the region in question. Ideally, I