search for: sinx

Displaying 6 results from an estimated 6 matches for "sinx".

Did you mean: sind
2004 Feb 21
3
saving variables created by functions in the workspace
Hello , just a simple question from a beginner: I write the function: plotsinx <- function() { x<-seq(0,2*pi,0.01) sinx<-sin(x) plot(sinx) } I recall it: plotsinx() and the plot works properly. but then in the workspace if I want to look at the values of sinx the following error is displayed: Error: Object "sinx" not found. How to save the variables created...
2010 Sep 09
4
Axis break with gap.plot()
...e loess is a "continuous" set of points, it passes in the break section. However, with gap.plot I cant plot the loess because of this (I got the message "some values of y will not be displayed"). Here's my code: library(plotrix); #generate some data x = seq(-pi,pi,0.1); sinx = sin(x); #add leverage value sinx = c(sinx,10); xx = c(x,max(x) + 0.1); #Loess yy = loess(sinx ~ xx, span = 0.1); yy = predict(yy); #Add break between 2 and 8 gap.plot(xx,sinx,c(2,8)); #This line works fine gap.plot(xx,yy,c(2,8), add = T); #This wont plot the loess I did the graphic I would li...
2003 Mar 11
3
R-Graphics: Scaling axis
...uot;plot" to the same scale? My problem: The following command sequence produces the plot in a square. What I want is the x-axis to be 5 times as wide (measured e.g. in pixels) as the y-axis is long (because y ranges from -1 to 1 and x ranges from 0 to 10). x <- seq( from=0, to=10, by=.1) sinx <- sin(x) plot( x, sinx, type="l") In noth help(plot) and help( par) I couldn't find a solution. What am I missing? Thanks for any hint, till ________________________________________ Mehr Power f?r Ihre eMail - mit den neuen Leistungspaketen bei http://www.epost.de
2007 Jun 15
3
how to plot two graphics in one window
Hello , Maybe this question you answered before, but i couldnt find something indicated in the mailing list. I wish to plot two graphics in one window, for example y=sinx and y=exp(x) in the same windows, (the same interval for x). Thanks . Miguel. -- View this message in context: http://www.nabble.com/how-to-plot-two-graphics-in-one-window-tf3929594.html#a11145186 Sent from the R help mailing list archive at Nabble.com.
2004 Nov 24
1
how to remove time series trend in R?
I got a set of data which has seasonal trend in form of sinx, cosx, I don't have any idea on how to deal with it. Can you give me a starting point? Thanks, Terry
2009 Apr 30
1
stepAICc
Dear R users, Would it be difficult to change the code of stepAIC (from the MASS library) to use AICc instead of AIC? It would be great to know of someone has tried this already. Best wishes Christoph.