similar to: Why using hist when setting the parameter probability=TRUE does not create probability plot?

Displaying 20 results from an estimated 1000 matches similar to: "Why using hist when setting the parameter probability=TRUE does not create probability plot?"

2013 Jan 25
3
How to extract elements from vector in reverse order?
Hi all mailing listers, I wanna get the last several elments of vector. e.g. x <- c(1,2,3,.....,78, 79, 80) How can I implement to assign last three elements to y, y <- c(78, 79, 80) ? In Matlab, It can easily achieve by y=x(end-2:end) Thanks Huaping Wan [[alternative HTML version deleted]]
2013 Jan 23
3
Pasting a list of parameters into a function
I need to repeat a function many times, with differing parameters held constant across iterations. To accomplish this, I would like to create a list (or vector) of parameters, and then insert that list into the function. For example: q<-("l,a,b,s") genericfunction<-function(q){ } ###### The equivalent code would of course be genericfunction<-function(l,a,b,s){ } Any help
2001 May 20
1
hist() ignores 'probability=T' (PR#944)
In the following, 'probability=T' is ignored, i.e. the vertical axis is labelled in frequencies. However hist(islands, freq=F) achieves the desired effect. > data(islands) > hist(islands, probability=T) # Vertical axis gives frequencies > hist(islands, freq=F) # Expected result --please do not edit the information below-- Version: platform = i386-pc-mingw32
2013 Jan 27
1
How to remove packages from the active working window
Hi all mailing listers, My question is as follows: e.g. I launched two packages, say packageA and packageB, but they have the function of the same name, leading to masking. I want to remove the packageA from the working window after using the packageA so as not to causing problem. I do not want to carry out task each time using packageA and packageB individually because many the tasks share
2013 Jan 29
2
export figure by pdf command
Dear R mailing listers, After plotting, I wanna save it as file in pdf format using pdf("name.pdf") command. It failed, but I can do it by GUI operation (file-save as-pdf). e.g. x11() hist(x, breaks = 50, probability = FALSE) pdf("hist.pdf") [[alternative HTML version deleted]]
2012 Jan 04
5
simulating stable VAR process
Hello all, I looking at package dse or vars or mAr I know how to simulate a VAR(p) process, my problem is that most of those processes are unstable (not weakly stationary). Do anybody know how to generate a random VAR (or VARMA even better) process that is weakly stationary? Thanks -- View this message in context: http://r.789695.n4.nabble.com/simulating-stable-VAR-process-tp4261177p4261177.html
2010 Apr 21
1
[LLVMdev] determining the number of iteration of a loop
In your example the the number of iterations is known -- it is N. It is not known at compile time, but it's known at run-time before you enter the loop. So you can do transforms like if( N < threshold ) copy of loop optimized for small iterations count; else copy of loop optimized for large iterations count; But you are right, in general, the number of iterations in unknown. I think Khaled
2011 Dec 06
2
read.table performance
** Disclaimer: I'm looking for general suggestions ** I'm sorry, but can't send out the file I'm using, so there is no reproducible example. I'm using read.table and it's taking over 30 seconds to read a tiny file. The strange thing is that it takes roughly the same amount of time if the file is 100 times larger. After re-reviewing the data Import / Export manual I think
2012 Oct 09
1
converting dgCMatrix to regular matrix
Hi: I've looked around and I must be missing it because it's probably somewhere. Does someone know how to convert an object of class dgCmatrix to a regular matrix. I can send someone the data if they need it but it's too big to include here. I read the data in using temp<-readMat("movielens.mat") where readMat is from the R.matlab package. But the resulting 2 matrices
2013 Jul 18
1
Difference between arima(1, 1, 1) of y and arima(1, 0, 1) of diff(y)
Dear all, When I run an arima(1,1,1) on an I(1) variable, y, I get different estimates to when I first difference the variable myself, e.g y2<-diff(y), and then run arima(1,0,1) on y2. Shouldn't these two approaches give the same output? Any help will be much appreciated. george
2011 Nov 05
2
installing 2.14.0 on fedora
Hi: Does anyone know of instructions for installing R.2.14.0 on fedora-linux ( I'm using f14 ) using only the tar.gz file. I don't think it's available at the fedora repo so I can't use yum. I've look at the R-installation instructions but I didn't get very far with that. Even just an internet link is appreciated. Thanks. Mark [[alternative HTML version deleted]]
2018 Mar 13
0
Learning advanced R
See Hadley's advanced R along Thomas Mailund's books. I haven't gone through them carefully but they both seem (from what I've looked at ) to be the best ones for that. Mentions of others are appreciated. On Tue, Mar 13, 2018 at 5:26 PM, Nik Tuzov <ntuzov at beacon.partek.com> wrote: > > Hello: > > Could you please suggest the best way to become an
2015 Apr 14
1
httpuv not installing on fedora 19
No, that's not it. The error is that you don't have the g++ binary installed. Undo that change and yum install gcc-c++. On Apr 14, 2015 8:31 AM, Mark Leeds <markleeds2 at gmail.com> wrote: > > Hi: I'm on fedora 19 ( I know. I'm behind : ) and I'm trying to install the > httpuv library > which depends on Rcpp. When I try to install it with dependencies =
2012 Apr 27
2
determining if a function exists in a particular package
Hello R People: Is there a way to determine if a function exists in a particular package, please? I looked at exists and objects, but they seem to refer to an environment rather than a package. I was thinking of something like: ifelse(exists(functiona) in MASS, print(1:10), print(5)) Thanks, Erin -- Erin Hodgess Associate Professor Department of Computer and Mathematical Sciences
2013 Feb 21
2
Arimax with intervention dummy and multiple covariates
Hi I'm trying to measure the effect of a policy intervention (Box and Tiao, 1975). This query has to do with the coding of the model rather than with the particulars of my dataset, so I'm not providing the actual dataset (or a simulated one) in this case, apart from some general description. The time series are of length n=34 (annual observations between 1977 and 2010). The policy
2018 Mar 13
5
Learning advanced R
Hello: Could you please suggest the best way to become an "advanced" R programmer. I went through "R for dummies" by de Vries and Meys and I can see two ways to proceed: 1) Get a more advanced textbook. E.g. could you recommend Gentleman, "R for Bioinformatics"? 2) Because textbooks are limited and become obsolete fast, I can focus on learning state-of-the-art
2018 Sep 22
2
installing tkrplot
Hi All: At the bottom of this email is my sessionInfo and below that there is a command that shows that tcltk is installed and working. My problem is that, when trying to install tkrplot, I get the following error: R CMD INSTALL -l . tkrplot_0.0-24.tar.gz * installing *source* package 'tkrplot' ... ** package 'tkrplot' successfully unpacked and MD5 sums checked configure:
2010 May 20
1
How could I restrict and reordered data.frames?
Dear Everyone, I 've just begun to use the library ncdf and I would like to compare meteorological observational data with forecast data, so to make verification. The netcdf files I'm using contain data of many different parameters in many different stations. I could read easily that I needed, but naturally I do not need the data of all the stations. On the other hand, the order of
2018 Apr 18
3
Hacked
Hi All: I lately get a lot more spam-porn type emails lately also but I don't know if they are due to me being on the R-list. On Tue, Apr 17, 2018 at 5:09 PM, Rui Barradas <ruipbarradas at sapo.pt> wrote: > Hello, > > Nor do I, no gmail, also got spam. > > Rui Barradas > > On 4/17/2018 8:34 PM, Ding, Yuan Chun wrote: > >> No, I do not use gmail, still
1999 Dec 11
2
hist() with horiz=TRUE does not give horiz. plots (PR#372)
Full_Name: Fran Rizzardi Version: 0.90.0 OS: Solaris, NT 4.0 Submission from: (NULL) (128.32.135.223) If you use the horiz= option with hist() you get the message: Warning: parameter "horiz" couldn't be set in high-level plot() function. and the plot comes out vertical. The documentation says this option comes from barplot() and it does work correctly in barplot(). This