similar to: Distribution Graph Idea/Help

Displaying 20 results from an estimated 5000 matches similar to: "Distribution Graph Idea/Help"

2009 May 08
1
Citing R/Packages Question
I used R and the quantreg package in a manuscript that is currently in the proofs stage. I cited both R and quantreg as suggested by citation() and noted the version of R and quantreg that I used in the main text as "All tests were computed with the R v2.9.0 statistical programming language (R Development Core 2008). Quantile regressions were conducted with the quantreg v4.27 package
2010 Sep 19
3
Repeating values in a list
I have a list that looks like this ... > have <- list(a=7,b=3,c=1) > have $a [1] 7 $b [1] 3 $c [1] 1 and I want to have a simple way to change it to the following without re-typing the values ... > desire <- list(a=c(7,7),b=c(3,3),c=c(1,1)) > desire $a [1] 7 7 $b [1] 3 3 $c [1] 1 1 In other words, I need to create the list in desire from the list in have. In my
2009 Apr 20
2
plotCI (plotrix) problem
I am attempting to create a plot with intervals "stretched" in the x-direction using plotCI() in the plotrix package. The same data provides an appropriate set of intervals when "stretched" in the y-direction but I only get a lower interval when "stretched" in the x-direction. The data are as follows mns <-
2010 Aug 10
4
Function to Define a Function
I am trying to define a general R function that has a function as the output that depends on the user's input arguments (this may make more sense by looking at the toy example below). My real use for this type of code is to allow a user to choose from many parameterizations of the same general model. My "issue" is that when I compile a package with this type of code in it I get a
2009 Jan 23
3
Table Modification
I am trying to construct a two-way table where, instead of printing the two-way frequencies in the table, I would like to print the values of a third variable that correspond to the frequencies. For example, the following is easily constructed in R > fact1 <- factor(sample(LETTERS[1:3],10,replace=TRUE)) > fact2 <- factor(sample(LETTERS[25:26],10,replace=TRUE)) > fact3
2013 Mar 26
1
update.packages(checkBuilt = TRUE) fails in updating rpanel_1.1-1 due to missing package BWidget
update.packages(checkBuilt = TRUE) fails with: > update.packages(checkBuilt = TRUE) rpanel : Version 1.0-6 installed in /usr/lib64/R/library built under R 2.15.0 Version 1.1-1 available at http://mirrors.softliste.de/cran Update (y/N/c)? y trying URL 'http://mirrors.softliste.de/cran/src/contrib/rpanel_1.1-1.tar.gz' Content type 'application/x-gzip' length 702508 bytes (686
2007 Nov 28
0
R crash using rpanel on mac os x
Hello, I've recently discovered a persistent issue with rpanel when running R.app (2.6.1) on Mac OS X 10.4.11. tcltk and rpanel load without any apparent error, and the interactive panels appear to work as expected, however upon closing the panels rpanel has created I get catastrophic errors and R crashes completely. For the most part R manages to crash with dignity and work can be saved, but
2012 Sep 09
1
Error msg in rpanel
I am working on the r panel package. Now if i have a function that uses a radiogroup button, and if i attempt to run the function from inside the rpanel menu, i get this error: Error in panel$intname : $ operator is invalid for atomic vectors However if i run the function per se i.e. not from inside the rpanel menu, but by calling it independently, the above error doesn't appear. Here is a
2010 Apr 15
0
Como introducir una etiqueta con rpanel
Muchas gracias a todo de antemano por vuestra ayuda, Estoy empezando a utilizar el paquete "rpanel" ¿Cómo puedo introducir una etiqueta utilizando rpanel? creo un panel de la siguinte forma, pero me gustaría introducir una etiqueta antes de los botones y no veo como puede hacerse anchoVentana<-1024 altoVentana<-600 panel<-rp.control(title="probando
2007 Dec 05
4
os x crash using rpanel and tcltk (PR#10495)
Hello, I've recently discovered a persistent issue with rpanel when running R.app (2.6.1) on Mac OS X 10.4.11. tcltk and rpanel load without any apparent error, and the interactive panels appear to work as expected, however upon closing the panels rpanel has created I get catastrophic errors and R crashes completely. For the most part R manages to crash with dignity and work can be saved, but
2011 Feb 07
1
kernel density
Hi all (again), many thanks for the answer to the optimization problem. All is fine now. The problem now is with kernel estimators in sm. package. I do all the work and the graphics good, but I need the density function data for each point, and I don't know how to get it. The only thing I get is the table at the end of the following sequence: >
2010 Sep 04
0
How to generate integers from uniform distribution with
On 04-Sep-10 19:27:54, Yi wrote: > Enh, I see. > It totally makes sense. > Thank you for your perfect explanation. > Enjoy the long weekend~ > Yi You're welcome! Earlier I tried an experiment with rejection sampling, which seems to work well for the case where you want mean of the sampled values to exactly be the mean of the range being sampled from. The number of tries, even
2011 Feb 24
0
rpanel rp.tkrplot: x&y when using layout
Hi all, I wish to use rp.tkrplot from the rpanel package with subplots produced by layout or split.screen. My problem is that I want to use a click function, but I can't work out how to convert the x and y values it produces into the values on the plots as unlike for a single plot they don't match. For example in the following code the (0,0) and (1,1) corners of the bottom left plot
2006 Aug 29
0
The rpanel package
The rpanel package builds on the tcltk package to provide simple interactive controls for R functions, in particular to provide simple forms of dynamic graphics. The intention is to make this form of control particularly easy for R users to implement, with full documentation. The necessary tcltk variables are managed behind the scenes so that users need not be concerned with any
2009 Apr 04
2
help with formula and data= argument
Sorry for posting this twice, but I still have not solved this problem and am hoping for some assistance. I am attempting to write a function that is flexible enough to respond to the user providing a formula (with a data= argument) or not (similar to plot(x,y) versus plot(y~x,data=data)). I have found a method to work with this in a simple case but am having trouble determining how to
2012 Mar 13
1
3D Black-Scholes Graph Help!
Hello all! I would like to create a 3d plot, with the option price explained by the underlying price and time. Unfortunately, I can't quite get it to work. I would very much appreciate your help! Thanks, Anna # Black-Scholes Option Graph library(lattice) blackscholes <- function(s, k, r=.1, t=5, sigma=.9,call=TRUE) { #calculate call/put option d1 <-
2012 Mar 08
3
rpanel / list error
Hi All, I have created a simulation that works perfect and I have the results been returned in a list as I have multiple values. I then decided to include some user interaction by using the package rpanel, I now get the error: object of type 'builtin' is not subsettable when I attempted to have the return my list with the results . Any help needed. I can also upload code if needs be.
2013 Jan 30
2
Integration of mixed normal distribution
Hi, I already found a conversation on the integration of a normal distribution and two suggested solutions (https://stat.ethz.ch/pipermail/r-help/2007-January/124008.html): 1) integrate(dnorm, 0,1, mean = 0, sd = 1.2) and 2) pnorm(1, mean = 0, sd = 1.2) - pnorm(0, mean = 0, sd = 1.2) where the pnorm-approach is supposed to be faster and with higher precision. I want to integrate a mixed
2007 Jan 31
0
Interactive plots with R
Hi, I wrote some simple rpanel package script for visual spectral data comparison. At this example i have a three samples and i want to zoom through x and y axis to compare differences between samples. With my script below I can zoom to some data region and add some other spetra to the plot, through text input field. But I can't figure out, how to change axis scaling for all displayed
2009 Sep 04
1
Best Way to Compute/Approximate(?) Probabilty of a Point in a Given Distribution
AFAIK, R only has "pnorm" which computes the probability of getting a value smaller or equal to "x" from a normal distribution N[mean,stdev]. For example: R> pnorm(0, 4, 10) [1] 0.3446 means there is 34.46% chance of getting a value equal to or smaller than 0 from a N(4, 10) distribution. What I intend to get is: given the observed value "x", mean, and stdev