Displaying 20 results from an estimated 2000 matches similar to: "Animating a persp plot: non-constant scaling?"
2005 Oct 16
2
Animated lissajous
Here's some code to make lissajous dance. I've attached a small sample
GIF.
Cheers,
Rob Steele
robsteele at yahoo dot com
plot.lissajous = function(omega.x, omega.y, delta = 0, num.thetas = 200)
{
thetas = seq(0, 2 * pi, length = num.thetas)
xs = sin(omega.x * thetas + delta)
ys = cos(omega.y * thetas)
plot(xs, ys, type = 'l', lwd = 3, ann = FALSE, axes = FALSE)
}
2001 Feb 01
1
Generalized Error Distribution (Exponential Power) CDF?
Hi all,
Just a random shot in the dark. Does anyone have/know of a function for the
CDF of a generalized error dist?
--
Elliot Williams (ewilliams at ucsd.edu)
Economics Department, UC San Diego
-------------- next part --------------
An embedded message was scrubbed...
From: Elliot Williams <ewilliams at ucsd.edu>
Subject: [R] Generalized Error Distribution (Exponential Power) CDF?
2001 Apr 25
2
Max/Min w/ Non-linear constraints
Hi all,
How do people do non-linear constrained maximization in R? If in C, are
there any packages people would recommend as being particularly easy to
interface/hack to work with R? And if not, does anyone want me to?
--
Elliot Williams (ewilliams at ucsd.edu)
Economics Department, UC San Diego
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing
2001 Feb 13
1
Which.min bug?
Hi,
I'm not sure this is a bug, so I thought I'd bounce it off the help group
first.
I had a dataset which I was subsetting, and occasionally I get an empty
subset. If I don't check for emptiness and go straight to a which.min call
on the subset, the program gets a big negative number back.
One-line Example:
> which.max(NULL)
[1] -2147483647
This caused an indexing
2001 May 29
2
Apply command on vectors
Hi all,
I keep running into a small problem in my programming, and I'm sure there's
an elegant way around it...
I often want to use apply() on a matrix with a variable number of columns. It
works just fine unless the number of columns is one, in which case the matrix
becomes a vector, and apply() complains. Example below:
-----------------------------
a.matrix <- matrix(rnorm(6),
2000 Oct 20
0
Re: R-help Digest V2 #236
R-help Digest wrote:
> Date: Thu, 12 Oct 2000 20:48:59 -0700 (PDT)
> From: Elliot Williams <ewilliams at ucsd.edu>
> Subject: [R] GARCH in package tseries
>
> I was running some likelihood ratio tests (using the current version of
> tseries) and found a different value for the log-likelihood from what I
> was getting using other software. I've traced the problem to
2005 Oct 04
1
mouse cursor won't leave screen center
Hi,
I'm trying to play Frontier First Encounters' Windows port jjffe using wine,
since that's the only version of the game that actually has a proper
framerate under X (using the dos version under dosbox I get about 2fps during
the intro sequence, while jjffe under wine looks perfect.)
However, the mouse stays more or less put in the center of the screen. When I
move it around,
2010 Jul 30
2
Layering multiple persp plots
Hi all,
I've got two persp plots with Identical X and Y's, and I'd like to plot them
on the same graph, so that it is obvious where one plot is above the other.
I can't find any mention of this anywhere. Do I need to use wireframe?
Any help is appreciated.
Thanks,
--
Ian Bentley
M.Sc. Candidate
Queen's University
Kingston, Ontario
[[alternative HTML version deleted]]
2009 Apr 03
16
[Bug 21023] New: NV34GL: fails to properly set up DVI
http://bugs.freedesktop.org/show_bug.cgi?id=21023
Summary: NV34GL: fails to properly set up DVI
Product: xorg
Version: unspecified
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: Driver/nouveau
AssignedTo: nouveau at lists.freedesktop.org
ReportedBy:
2009 Jan 05
2
Sweave data-figure coupling
Hi,
With the following Sweave minimal file:
---<--------------------cut here---------------start------------------->---
\documentclass{article}
\usepackage{Sweave}
\begin{document}
<<binom-sim>>=
thetas <- seq(0, 1, by=0.001)
prior <- rep(1, length(thetas)) / length(thetas)
lik <- dbinom(1, 1, thetas)
lik.p <- prior * lik
post <- lik.p / sum(lik.p)
2003 Jun 05
1
persp(), par() and axis()
Dear R experts,
On explanation of persp() parameters the last item is:
...: additional graphical parameters (see `par').
However, setting the `tcl' parameter has no any effect.
I guess that axes are added to persp() in somewhat freakish
way, and have nothing in common with axis() function.
I found the very useful trans3d() function in persp() help
page, and I'd like to use it
2010 Feb 07
1
contour & persp
I have this data set that both x & y are ordered vectors of length 600 & 700 respectively; z is a 600 by 700 matrix whose entry z[i,j] is either a missing value (indicated by 'NaN') or a real number between 0 and 1. The contour function
contour(x,y,z)
gives me a blank picture. I guess the reason is that most of z-entries are missing, only less than 1% are non missing.
2003 Sep 17
0
Persp and color (again)
Hi guys,
After all the discussion yesterday about persp and color, I decided to
have a more closer look at demo(persp), and decided to write a function to
generate 'topo-like' colours to plot perspectives (Thanks a lot to Uwe
Ligges for his enlightning comments regarding the code in the demo).
Here it goes, I believe that this function will be pretty useful to a lot
of people:
1999 Mar 30
0
Example(persp) fails in 0.63.4 and 0.64 (PR#152)
>From 0.63.4 or 0.64:
> example(persp)
persp> x <- seq(-10, 10, length = 50)
persp> y <- x
persp> f <- function(x, y) {
r <- sqrt(x^2 + y^2)
10 * sin(r)/r
}
persp> z <- outer(x, y, f)
persp> z[is.na(z)] <- 1
persp> par(bg = "white")
persp> persp(x, y, z, theta = 30, phi = 30, expand = 0.5,
col = "lightblue")
2003 Sep 08
2
Persp Plot
I am trying to graph two planes on the same graph using persp(). I can only
get one plane to plot at a time. Can someone explain how I can graph two
planes on the same graph using persp? I've looked throught the
documentation, but cannot find any references to appending a persp plot.
Thanks.
Sincerely yours,
Mark J. Lamias
Statistical Consultant
2007 Sep 10
1
persp() problem
I am having some trouble getting the persp() package to change the x
and y axis on a 3d plot. It defaults to the [0,1] interval and when I
try to change it I get errors.
Example:
This works:
------------
D <- c(1,2,3,4,5,6,7,8,9,10)
M <- c(11,12,13,14,15,16,17,18,19,20)
DM <- cbind(D,M)
persp(DM, theta = 40, phi = 30, expand = 0.5, col = "lightblue",
ltheta = 120,
2003 Sep 15
2
Persp and color
How can I control de "wrap-around" color behaviour in the persp
function ?
I am using something like :
persp(bb[1:100,2:97], col= rainbow(8,start=0.1, end=0.8)))
Depending on the rainbow length value I get several "wrap-around" blocks of
the selected color range...something that I wanted to avoid...
My idea is to use the color in order to make a separation from a
certain
2006 Jun 28
1
persp/ scatterplot3d
Dear WizaRds,
I would like to create a 3d-plot with persp(). I sampled 17 points
with xyz-coordinates (real-life example!), representing the peaks of the
whole plane with "zero coordinates" x=3,y=3,z=3. My intention is to show
which entries are above or below the "zero" level with persp() on a
nicely created grid. I also tried scatterplot3d(), but, alas, I am
unable
2004 Oct 26
1
persp(), scatterplot3d(), "..." argument
Hello list.
I very often need 3d scatterplots, and use scatterplot3D quite a lot.
I am trying to modify persp() to plot scatterplots, and make use of
the theta and phi arguments that persp() offers. I am having some
difficulty passing the correct arguments to persp().
Here is my function so far. Much of it is copied from the persp() manpage.
points3d <- function(x,y,z,
2004 Oct 26
1
persp(), scatterplot3d(), "..." argument
Hello list.
I very often need 3d scatterplots, and use scatterplot3D quite a lot.
I am trying to modify persp() to plot scatterplots, and make use of
the theta and phi arguments that persp() offers. I am having some
difficulty passing the correct arguments to persp().
Here is my function so far. Much of it is copied from the persp() manpage.
points3d <- function(x,y,z,