Displaying 20 results from an estimated 2000 matches similar to: "contour on a simplex"
2010 Feb 16
3
Triangular filled contour plot
Hi all,
I am working on a filled contour plot which shows a triangular matrix data
set (as shown below). Is there a possibilty to draw a triangular filled
contour in a equilateral triangle (like a ternary plot)?
Thanks in advance
Johannes
http://n4.nabble.com/file/n1557386/Bild3.png
--
View this message in context: http://n4.nabble.com/Triangular-filled-contour-plot-tp1557386p1557386.html
2010 Mar 17
1
Cropped graph using lattice
I'm fitting data from a mixture experiment, and I'd like to present the results in a ternary graph with contours. I found this code by Walmes Zeviani
http://n4.nabble.com/Triangular-filled-contour-plot-td1557386.html
which is just what I want--except I would like the axis titles and labels to be proportionately larger than the ternary graph itself, for legibility in publication. When I
2011 Feb 15
1
ternary contour plot
Colin,
If your propose is to create a ternary plot with points and vectors, I think easier do this with graphics based plots instead of trellis based plots. Although, with little work you can do with trellis too. I gave you a reproducible code to put an arrow in a ternary plot. I use the function locator() to extract coordinates. The code is the following
2011 Jun 02
4
Use line break at scrip but avoid line break on graphics
Hello list,
I have plots with long strings in main=, ylab= or xlab=. So, in I my script
I use break long lines to avoid lines hiden on my monitor and in sweave
document pages. I use graphics like this
plot(1, main="aaaaaaaaaaaaaaaaaaaa
bbbbbbbbbbbbbbbbbbbb")
but I would like a plot result like this
plot(1, main="aaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbb")
I
2010 Feb 17
2
How to provide a result from D(f(x), "x") to a curve(f'(x)) ???
Hi all,
I want to provide the result from D() to curve(), because I want to plot the k-th derivative of some functions. Actually, I copy from console the result given by D() and paste inside curve(). With a lot of functions and high degree differentiation this process is tedious. Can I provide directly??
# what I actually have done (very simple function)
D(expression(x^3), "x") # copy
2002 Nov 22
1
simplex problem (PR#2317)
Full_Name: George F. LeCompte
Version: 1.6.1
OS: Windows 98
Submission from: (NULL) (208.8.162.161)
This may be a newbie problem. I am attempting tor unt the simplex routine from
the boot package. The example code doesn't find simplex. What's wrong here?
> help(simplex,package=boot)
> # from the resulting article
>
> # This example is taken from Exercise 7.5 of
2007 Jul 10
2
integration over a simplex
Hello
The excellent adapt package integrates over multi-dimensional
hypercubes.
I want to integrate over a multidimensional simplex. Has anyone
implemented such a thing in R?
I can transform an n-simplex to a hyperrectangle
but the Jacobian is a rapidly-varying (and very lopsided)
function and this is making adapt() slow.
[
A \dfn{simplex} is an n-dimensional analogue of a triangle or
2009 Dec 08
1
Simplex Density Plots
Hello,
I have just started using R, and have found it quite easy to make
plots of probability densities for normal and beta distributions, etc.
Now, I'm looking at trying to make a simplex plot of a Dirichlet
density, but have gotten stuck and was hoping that someone could help.
Ideally, the plot would look something like the 3d plots on Wikipedia here:
2007 Jul 30
1
array loop
Dear all,
here are two arrays: region(26,31,8), nation(8)
I tried to get a new array, say, giGi(26,31,8)
giGi <- array(0,dim = c(region_dim))
for (i in (1:region_dim[3]))
{
giGi[,,i] = region[,,i]-nation[,i]
}
As the above is part of function, but results shows only giGi[,,1] has the
right answers, all the others (giGi[,,2],..giGi[..8]) are zeros. I have
checked array of region and
2009 Jun 19
2
Manipulate solution of simplex
Hi,
I need some help. I'm doing a project that demands me to obtain several
simplex solutions and I would like to can keep the solution in a vector or
something to be able to use it after I get it.
The comand simplex() prints the solution but how can I keep it?
Another alternative would be to export it to excel, how can I do this?
I just see the solution and have to note it on a paper or
2011 Aug 06
1
multcomp::glht() doesn't work for an incomplete factorial using aov()?
Hi R users,
I sent a message yesterday about NA in model estimates (
http://r.789695.n4.nabble.com/How-set-lm-to-don-t-return-NA-in-summary-td3722587.html).
If I use aov() instead of lm() I get no NA in model estimates and I use
gmodels::estimable() without problems. Ok!
Now I'm performing a lot of contrasts and I need correcting for
multiplicity. So, I can use multcomp::glht() for this.
2008 Dec 11
2
Simplex function in R
I have a set of linear equations and would like to find any feasible solution. A simplex solution works in Case 1 below, but not in Case 2. I would be grateful for any help.
Case 1: Find any feasible solution for the set of linear equations:
a + b + c = 5
a + b + 0c = 4
0a + b + c = 4
Solution - a feasible (and unique) solution is a=1, b=3, c=1.
The following R code
2010 Jan 14
3
Barchart bar lengths not proportionate
When I use barchart (with default formatting options), I get bars whose
lengths/heights are not proportional to their value. For example:
http://drop.io/wbagm6s/asset/capture-png
Many of the values in this chart are 1; however, because the blue bars
extend to the left of the "0" tick mark, those bars appear to represent
higher numeric values. Is there a way to make the length of the
2009 Oct 10
2
Nelder-Mead with output of simplex vertices
Greetings!
I want to follow the evolution of a Nelder-Mead function
minimisation (a function of 2 variables). Hence each simplex
will have 3 vertices.
Therefore I would like to have a function which can output
the coordinates of the 3 vertices after each new simplex
is generated. However, there seems to be no way (which I can
detect) of extracting this information from optim() (the
2010 Jan 23
2
About LU decomposition in R
Hi,
How can I find and download a function in R to do the LU decompostion for finding the upper and lower triangular matrix. Thank you so much.
Joe
___________________________________________________
您的生活即時通 - 溝通、娛樂、生活、工作一次搞定!
[[alternative HTML version deleted]]
2012 Apr 11
1
Lattice densityplot with semitransparent filled regions
Hello,
I'm doing some graphics for a paper and a need customize such with filled
region above the density curve. My attempts I get something very near what
I need, but I don't solve the problem of use semitransparent filled. Below
a minimal reproducible code. Someone has any idea?
require(lattice)
# toy data...
dt <- expand.grid(A=1:2, B=1:3, y=1:50)
dt$y <- rnorm(nrow(dt), dt$B,
2003 Oct 11
1
Simplex "Out of Bounds" Error
I am running the following code (testing the use of the simplex function to
determine if a point is in the convex hull of another set of points or not):
>a <- c(0, 0)
>A3 <-matrix(c(1,2,3,4,1,1), ncol = 2, byrow = T)
>b3 <-c(1.5, 3.5, 1)
>simplex(a = a, A3 = A3, b3 = b3)
and the following error message appears:
Error in simplex1(out1$a[1:(n + m1 + m2)], out1$A[, 1:(n + m1
2005 Mar 11
1
Simplex(boot) returning invalid answer
In trying to use simplex() from the boot package, I have run into a
situation that doesn't seem like it should be possible. It is claiming
that it has solved the LP, but returns a vector of all zeros, which
does not satisfy the constraints I passed in. A small example:
> ubMatrix <- matrix(c(1,1,-1,0,-1,-1), 3, 2)
> ubVector <- c(2,1,-1)
> objective <- c(0,1)
>
2007 Nov 30
1
simplex projection and S-Map
I am interested in using the nonlinear forecasting techniques developed
by Sugihara et al. In particular the simplex projection and the S-Map
(see this website for details and reprints: http://iod.ucsd.edu/simplex/ ).
I've looked through CRAN but could not find any package with functions
that allow such analysis.
Any pointers?
Thanks,
Manu
2010 May 26
1
Is possible a mini-plot into a big plot with Lattice?
Hello,
I want to do with Lattice functions (qqmath, histogram) a figure like this below.
n <- 1000
x <- rnorm(n)
qqnorm(x); qqline(x)
op <- par(fig=c(.02,.5,.5,.98), new=TRUE)
hist(x, xlab="", ylab="", main="", axes=FALSE)
box()
par(op)
Is possible?
Thanks.
Walmes Zeviani.
_________________________________________________________________