Displaying 20 results from an estimated 120 matches similar to: "how to plot implicit functions"
2004 Mar 10
3
How to use MLE-class?
Hi there,
I had successfully use "MLE" function to solve my problem. Is there
anyone knows how to get related information? i.e., value of likelihood
function, information matrix, and etc. I know MLE-class can do it but I
can not find any information tells me how to do it.
Thanks a billions,
Yihsu
[[alternative HTML version deleted]]
2007 Dec 09
3
editor under MAC system
Dear R-user;
I recently switched from PC to MAC. Is there a compatible editor as
Win-editor with package RWinEdit for MAC?
Thanks
Yihsu Chen
[[alternative HTML version deleted]]
2006 May 18
2
create a vector
Dear R users:
I have an elementary question: how to creat a vector of [A1, A2, A3...... A300]? I know c(1:300) would give 1, 2, 3, ...., 300 but not sure how to attch a A to each element.
Thank you
Yihsu Chen
The Johns Hopkins University
2006 May 16
2
split the data.frame
Dear R folks:
I wonder anyone has a elegent way of doing what I need to do.
I have a data frame called with four columns: V1, V2, A1 and A2:
V1 V2 A1 A2
A B 1.2 2.0
A D 1.2 4.0
A C 2.4 2.2
What I need to do is to convert it into the following data frame with a new column x, where x is just the stacked up of A1 and A2 placed with respective V1 and V2 in the first two
2007 Feb 22
2
write fixed format
Dear R users;
Is there a function in R that I can put "text" with proper alignments in
a fixed format. For instance, if I have three fields: A, B and C, where
both A and C are text with 3 characters and left alignment; B is a
numeric one with 2 decimals and 3 integer space digits. How can I put
the following row in a file? (note there is a space between a and 2, and
after b.)
2006 Apr 27
2
add city and point in the map
Dear Helpers:
I'm trying to use packages "maps" and "mapdata" (see blow) to display the research resutls on map (Mid-Atlantic region). In particular, I need to mark a number of points in the map by giving their latitude and longitude information. For instance, I would like to mark a point on (long, lat) =(75.56027, 39.09271). Also, I need to mark several cities that I
2006 May 19
1
Writing to a file with fixed precision
Dear R users;
A follow-up question regarding writing to a file with fixed precision:
Assuming for each column of x, I would like to have a different format, then I modify the code as:
x.fmt <- apply(x, 1, function(x) sprintf("%.14f %.10f %2.5f", x))
where three different formats are %.14f %.10f %2.5f.
The error message I got is "Error in sprintf(fmt, ...) : too few
2007 Jul 09
1
ca.jo
Dear R users;
I'm using ca.jo for a VECM model. Is there a way that I can get sd/p-value
to see whether coefficients estimated are statistical significant? Thank
you
Yours,
Yihsu
[[alternative HTML version deleted]]
2006 May 18
1
How to write output in a specific formate with irregular space
Dear R users:
My question is how to write output in a specific formate with irregular
spacing?
Say that I have the following DF with three columns (A-C):
A B C
a10 100.0 212
The objective is to write an output file such that column A occupies
1-10 spaces aligned to the left, column B occupies 11-15 spaces aligned
to the right, and finally column C takes 16-25 spaces
2006 Jul 11
1
problem of fixed-formated output using sprintf
Dear R users:
I'm trying to generate a output file with fixed format using function "sprintf" in R. However, the execution time in R is very long even the toy data (smaller size df) seems to work fine. The syntax that I used is as follows:
df.fmt <- sprintf("%2s%2s%2.4f", df$v1, df$v2, df$v3)
write.table(df.fmt, output.name,...)
The actual dataset is a df with the
2008 Feb 01
1
calculation fraction/ratio
Dear R users
I wonder if there is a quick way to calculate the ratio/fraction of a
list/data frame. For example, if I have a data frame with two fields:
"Index" and "A". I would like to know the fractions of A's within the same
"Index". That is, for Index =1, three fractions will be "1/(1+2+3)=0.17",
"2/(1+2+3)=0.33", and
2011 Nov 28
1
solid of revolution
Dear all;
I'm tring to find a way to plot a solid of revolution in R, say
rotating the 3 param logistic function aaround the x-axis. Is there a
way to do it using R?
Thanks for any hint
PM
2012 Nov 16
2
Question about contour3d and writeWebGL: rgl and misc3d package
I saw that in rgl:::writeWebGL that "Polygons will only be rendered as
filled; there is no support in WebGL for wireframe or point rendering.". I
found that you can easily use contour3d to make reproducible contour web
figures, such as (taken from contour3d help)
library(AnalyzeFMRI)
a <- f.read.analyze.volume(system.file("example.img", package=
2010 Feb 11
2
Using contour3d: axes, plotting to file, with lattice
I am looking for examples of how to plot with contour3d() to a PNG or PDF file, add axes and other elements to the isosurface plot, and use contour3d in conjunction with lattice. Regarding lattice, I'm not necessarily looking for conditioning on the data shown in the isosurface plots, just a way to show multiple plots in one figure and label them. I am new to the packages misc3d and rgl.
2006 Jun 06
0
misc3d_0.4-0 now available on CRAN
Release 0.4-0 of package misc3d is now available from CRAN. This
package provides a small collection of functions for 3D plotting,
including 'contour3d' for computing and rendering 3D contours or
isosurfaces and 'parametric3d' for rendering parameterized surfaces.
A major change in this release is that rendering in standard and grid
graphics is now supported in addition to rgl.
2006 Jun 06
0
misc3d_0.4-0 now available on CRAN
Release 0.4-0 of package misc3d is now available from CRAN. This
package provides a small collection of functions for 3D plotting,
including 'contour3d' for computing and rendering 3D contours or
isosurfaces and 'parametric3d' for rendering parameterized surfaces.
A major change in this release is that rendering in standard and grid
graphics is now supported in addition to rgl.
2011 May 12
2
Exporting interactive 3D plots with axes and labels
Hi,
I have a question about exporting interactive 3D plots. I use the following code to plot a contour of a trivariate normal distribution:
library(mvtnorm)
library(rgl)
library(misc3d)
n=25
x=seq(-3,3,length=n)
X=cbind(rep(x,each=n**2),rep(rep(x,each=n),n),rep(x,n**2))
p=array(dmvnorm(X,sigma=diag(3)*0.5+0.5),c(n,n,n))
contour3d(p,x,x,x,level=mean(p))
lim=c(-3,3)
2011 Jul 13
2
3D density plot of point set
Hello everybody,
I would like to solve the problem described below in R (if
possible). I am very new to R and have therefore no idea what to
even look for in the docu. Therefore, if someone could tell me if
this is possible in R and where I might find the respective docu
then I would already be very thankful.
I have a large set (a few million) of points in 3D. I would like to
create a
2011 Aug 03
2
r-help
Hey,
Is there any function plotting several "implicit functions" (F(x,y)=0) on the same fig. Is there anyone who has an example code of how to do this?
The contour3d function in the misc3d package only work with the functions with three dimensions.
Thanks a lot.
Many thanks for your help.
KnifeBoot
[[alternative HTML version deleted]]
2013 Mar 10
1
misc3d Contour export to vtk
So I wanted to export a contour3d object into VTK and it worked well
enough, except the top of the ball (the contour) was missing. Example
below, or gist here:
https://gist.github.com/muschellij2/5126544
rm(list=ls())
require(misc3d)
f <- function(x, y, z) x^2+y^2+z^2
x <- seq(-2,2,len=20)
ball <- contour3d(f,4,x,x,x, draw=FALSE)
drawScene.rgl(ball)
### get the triangles
allids