[R] boxplot

2013-03-14 Thread wei wu

Hi,

I try to boxplot following data on the subset of (V1,V3,V5,V7) and 
(V2,V4,V6,V8)


V1  V2   V3 V4  V5  V6  V7  V8
24  6 712  33   43  53

how can I use boxplot function to plot it?

thanks,

William

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Is it possible to start R-GUI in a windowed state under Windows OS

2012-07-15 Thread Wei Wu
Is it possible to start R-Gui in a windowed state under windows? (I am running 
Windows 7 and Vista)
I have the set the property for R icon to normal window option, but that has 
no effect.
Thanks.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Efficient way to Calculate the squared distances for a set of vectors to a fixed vector

2011-08-24 Thread Wei Wu
I am pretty new to R. So this may be an easy question for most of you.
 
I would like to calculate the squared distances of a large set (let's say 
2) of vectors (let's say dimension of 5) to a fixed vector.
 
Say I have a data frame MY_VECTORS with 2 rows and 5 columns, and one 5x1 
vector y. I would like to efficiently calculate the squared distances between 
each of the 2 vectors in MY_VECTORS and y.
 
The squared distance between two vectors x and y can be calculated:
distance - crossprod(x-y)
 
Without looping, what is the efficient code to achieve this?
 
Thanks.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.