[R] Scatterplot3D in r

2014-07-13 Thread Babak Bastan
I would like to visualize my data in a scatterplot3d On my X and Y axis, I would like the same labels. Something like this: x<-c("A", "B", "c", "D") y<-c("A", "B", "c", "D") on the Z axis, I would like to show the comparison between labels in X and Y A with A A with B A with C A with D B

[R] Piecewise Aggregate Approximation in r

2014-05-15 Thread Babak Bastan
Hi experts Is there any package or function in r to use PAA (Piecewise Aggregate Approximation). Could you please inform me if is there any? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/

[R] using animation with persp

2014-05-14 Thread Babak Bastan
I would like to generate animating 3D plot. I have a matrix with 416 columns and 128 rows. a piece of my matrix looks like this:[,1] [,2] [,3] [,4] [,5] [,6] [1,] NA 0.4118836 0.6411741 0.7286600 0.7622486 0.7523395 [2,] NA 0.3481329 0.6066273 0.693448

[R] changing x-axis in plot

2014-05-06 Thread Babak Bastan
Hi experts I woul like to change my x-axis. Like this: 10,...,2,...,1 I am using this code: r<-c(1:10) plot(r, axes=FALSE, frame.plot=TRUE,xlim=c(10,1)) axis(1,at=10/seq(1:10)) axis(2, at=axTicks(2), axTicks(2)) but my x-sxis i still: 1,..., 2,...,10 What should I do? [[alternative HT

[R] How to rbind() two matrices that have different column sizes?

2014-03-26 Thread Babak Bastan
Hi friends I would like to rbind two matrices with different column number. How can I do that? (I dont want to use Plyr package). Is there any way except plyr? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://st

[R] Java error while using XLConnect

2014-03-21 Thread Babak Bastan
I would like to use XLConnect to write some data on XLSX file. but this exception occured: Error: NoSuchMethodException (Java): No constructor matching the given parameters could someone tell me, how can I fix this problem? [[alternative HTML version deleted]] _

Re: [R] smoothing a plot in r

2014-03-20 Thread Babak Bastan
alist,f=1/3),col="red", lwd=2) > lines(lowess(datalist,f=1/10),col="green", lwd=2) > > -Don > > > -- > Don MacQueen > > Lawrence Livermore National Laboratory > 7000 East Ave., L-627 > Livermore, CA 94550 > 925-423-1062 > > > > >

[R] smoothing a plot in r

2014-03-20 Thread Babak Bastan
Hi friends Iwould like to smooth my plot. I have a plot which is wiggly and I want to smooth it. here is my data 539, 532, 531, 538, 544, 554, 575, 571, 543, 559, 511, 525, 512, 540, 535, 514, 524, 527, 532, 547, 564, 548, 572, 564, 549, 532, 519, 520, 520, 543, 550, 542, 528, 523, 531, 548, 554,

[R] Error:Data is not atomic

2013-10-28 Thread Babak Bastan
Hi experts, I want to user haar wavelet transform. If I am using this simple command, it works nice: k<-c(1,2,3,4,5,6,7,8) ywd<-wd(k,filter.number=1,family="DaubExPhase") but if the K is a list like this: *[[1]]* *[1] 401* * * *[[2]]* *[1] 481* * * *[[3]]* *[1] 480* * * *[[4]]* *[1] 482* * * *[

[R] Package for PAV and MPAV algorithms

2013-10-28 Thread Babak Bastan
Hi experts, Is there any packag for PAV and MPAV algorithms (Pattern Anomaly Value) [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://w

[R] new dprep package for windows

2013-10-16 Thread Babak Bastan
Hi experts, I need the new version of dprep package for windows. What I have found is version 1. if I am installing version 1 I get this error *Error: package ‘dprep’ was built before R 3.0.0: please re-install it* * * Is ther a new version of this package? if not what should I do? [[

[R] moving a window over a matrix column

2013-09-26 Thread Babak Bastan
Greeting I want to move a window over a column in a Matrix. For example. I have a 8X1 Matrix and I want to read the data from 1 until 5, for the second time 2 until 6, third time 3 till 7 and... and do something on this values and show them in a diagramm: I wrote this code: #here I make an nX1 M

[R] Why does sin(pi) not return 0?

2013-09-26 Thread Babak Bastan
Hi experts, If I test sin(pi) in r, it returns me 1.224606e-16 Why doesn't return me 0? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide htt

[R] Cosine window in r

2013-09-25 Thread Babak Bastan
Hi experts Can some one tell me, how can I implement Cosine window in r? Is there a function for that? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the pos

[R] How can I draw a 3D diagram (persp) with these Infos

2013-09-24 Thread Babak Bastan
I want to have a 3D diagramm. My Information are: - x:Time - it could be 1:n (integer number) - Y:Frequency ---it could be 1:n like x z:the value of z come from a function *fft_amplitude <- function(x) {sqrt((Re(fft(x)))^2+(Im(fft(x)))^2)}* ** The input values for this function shoul

[R] Invalid Z argument error in persp.default

2013-09-24 Thread Babak Bastan
I do the folloowing in order to get 3D Plot: y<-1:(point/2) x<-20:30 z<-r[1:(point/2)] persp(x,y,z,theta = 135, phi = 30, col = "green3", scale = FALSE, ltheta = -120, shade = 0.75, border = 1) y: [1] 1 2 3 4 5 x: [1] 20 21 22 23 24 25 z: [1] 4811.003.5930256.9686664.9