Displaying 20 results from an estimated 10000 matches similar to: "Device 2: graphic window"
2010 Apr 09
6
function rep
Hi,
I've got the following code:
p <- 0.34
pb <- p*100
pr <- (1-p)*100
A <- rep(0,pb) # a vector with 34 "zeros"
B <- rep(1,pr) # a vector with 66 "ones"
Now if I type
length(A), R answer correctly 34
but if I type
length(B), R answer 65 instead of 66.
I don't understand why it happens. Can anyone help me? Thanks in
advance.
Paolo
2010 Apr 08
3
use read.table for a partial reading
Hi everyone,
I've got a matrix data with 20 variables (V1, V2, V3, ...) and 215
rows (observations). I'm interested to read only the first and second
variables using "read.table" function. How can I do?
Thanks in advance.
Paolo.
2002 Jul 10
3
new user
Hi,
I'm a beginner of R.
I find it absoluty fantastic, flexible and very extensible.
For the moment only a curiosity.. Why the name R? (are they perhaps the
initials of Robert Gentleman and Ross Ihaka?, or is the name correlated with
S language?)
Sorry for my poor question but I am very curious
Thank in advance
Paolo C.
2003 Aug 21
5
graphic widow overwrite
Hi,
I am running a loop to plot multiple plots. In s-plus,
it shows multiple pages in the graphic window to allow
checking on each plot. but in R, the next plot always
overwrite the previous one, so i can only have the
last plot produced, is there a way to have multiple
pages in the graphic window just like S-plus does?
Thanks
2004 Jul 15
5
Newbie
Hi,
I wish build a R-script (or a R-function) that read a number from the keyboard and then process it.
For example: from R I load the function X, that ask me the level of confidence "\alpha", by keyboard I write 5 and the function go on.
Thanks in advance
Paolo
[[alternative HTML version deleted]]
2003 Jul 31
2
help with graphics
I'd like to use lattice to make graphics under conditional structure like :
if (TRUE) { barchart(....)
dev.print(png, file = "image1.png", width = 600)
}
but there's nothing in the output file. It seems that it's too long to print graphic into the graphical output and the saved file is a blank picture.
it works if I do that without the conditionnal structure.
it doesn't
2010 Apr 09
1
terminating function
Hi everyone,
I 'm building a function, in the middle it controls the sign of a
variable x. If x < 0 the function write a warning (Error: negative
value!). At this point I want the function stops without execute the
remaining code.
How can I do to terminate the function before your ending?
Thanks in advance.
Paolo
2013 Jul 25
2
[PATCH V2 4/4] x86: correctly detect hypervisor
We try to handle the hypervisor compatibility mode by detecting hypervisor
through a specific order. This is not robust, since hypervisors may implement
each others features.
This patch tries to handle this situation by always choosing the last one in the
CPUID leaves. This is done by letting .detect() returns a priority instead of
true/false and just re-using the CPUID leaf where the signature
2013 Jul 25
2
[PATCH V2 4/4] x86: correctly detect hypervisor
We try to handle the hypervisor compatibility mode by detecting hypervisor
through a specific order. This is not robust, since hypervisors may implement
each others features.
This patch tries to handle this situation by always choosing the last one in the
CPUID leaves. This is done by letting .detect() returns a priority instead of
true/false and just re-using the CPUID leaf where the signature
2013 Jul 25
2
[PATCH V2 4/4] x86: correctly detect hypervisor
We try to handle the hypervisor compatibility mode by detecting hypervisor
through a specific order. This is not robust, since hypervisors may implement
each others features.
This patch tries to handle this situation by always choosing the last one in the
CPUID leaves. This is done by letting .detect() returns a priority instead of
true/false and just re-using the CPUID leaf where the signature
2003 Jul 30
6
reverse array indexing
Hi,
Suppose I have a multidimensional array:
tmp <- array(1:8, c(2,2,2))
is there a function out there that, given a one-dimensional array index,
will
return the separate indices for each array dimension?
for instance, tmp[8] is equivalent to tmp[2,2,2]. I'd like to derive the
vector (2,2,2)
from the index 8.
thanks,
Brad Buchsbaum
2002 Jul 23
3
Aggregate: assembling the "by" part on the fly
Dear R users,
I'm having trouble using aggregate() and would
greatly appreciate your advice. I am using R 1.5.1
on Windows 2000.
I want to call my function in the following way
extract.data(x=dat[, "Age", "Year"])
where extract.data() uses aggregate() to count the number
of cases for each combination of "Age" and "Year".
I've defined
2005 Sep 05
1
tcltk, X11 protocol error: Bug?
Hi,
I am having trouble debugging this one. The code is attached below, but
it seems to be a problem at the
C-tk interface. If I run this 1 time there are no problems if I run it
more than once I start to get warnings
that increase in multiples of 11 everytime I run it. Here is a sample
session
> source("clrramp2.r")
Loading required package: tcltk
Loading Tcl/Tk interface ... done
2005 Nov 27
3
Canvas Tag + Rails Ajax
Hi all,
Just looking for a quick sanity check. I was thinking of writing a
plugin for rails to give rails developers a good way of using the new
firefox 1.5/safari canvas tags. I was thinking of grabbing an
existing ruby graphics library and modifying it so that it renders
via the canvas tag..
So you could have link_to_remote pointing to controller actions that
instead of returning
2003 Feb 19
3
Pretty onscreen plots?
I'm looking for ideas for creating high-quality plots for use in projected
presentations (powerpoint, etc) --- ideally high-quality png, jpg, bmp.
The graphics produced using the postscript device look very good. Those
generated with win.graph(), png are plagued by the jaggy lines.
So far, the only way I can use the postscript plots in my presentations is
using separate screen capture
2003 Sep 04
2
laplace transform
Dear users,
is anybody of you aware of a R command to perform laplace transform or
even its inversion?
Thank you very much.
Luca
2003 Jul 22
3
R and C++ compared with only C++
My computer is a pentium 4 running at 2.4 GHz.
My R is 1.7.1
I have written a program in R that calls C++. The program spends most of the
time in C++ ( > 90% ). R basically deals with output and input.
How slower can this be compared with the program I would get from rewriting
everything in C++?
Thank you.
2009 Mar 24
1
segfault when running heatmap()
Hi, I was wondering if someone in the mailing list has any insight into this
segfault error that I consistently find when running a script containing
heatmap() in R 2.8.1 and 2.8.0 on a Linux 64-bit machine.
Some points:
1. This occurs when running heatmap().
2. Interestingly, if I source() the script or copy and paste the script in
its entirety, this error occurs. However, if I run the
2009 Aug 01
3
Transparency and trellis device
Dear R-users,
I am trying to produce trellis (png, or jpeg) graphs with transparent background, but I cannot manage to make that happen. I tried to play around with themes but to no avail. Any advise on the following example will be greatly appreciated:
Thank you
Sebastien
####
library(lattice)
df <- data.frame(a=rep(1:4,4), b=rep(1:4,4), c=rep(1:4,each=4))
settings <- standard.theme()
2003 Aug 01
1
(no subject)
> Hello,
> My question is very simple. I have installed R from the internet and I
want to use it to analyse my data set. It seems that R is not able to make
the
> connection when I use the read.table () function since it probably doesn't
know where is the required file. Where am I suppose to save my file ?
> Thanks
>
> Marc-Antoine Vaillant
> Actuarial Analyst
> Les