Displaying 20 results from an estimated 3000 matches similar to: "misc3d_0.4-0 now available on CRAN"
2005 Jun 04
0
New CRAN package misc3d
The misc3d package provides a small collection of mostly rgl-based
functions for 3D data:
contour3d Uses rgl to render isosurfaces, or three-dimensional
contours, computed by the marching cubes algorithm.
image3d Crude 3d analog of image() using rgl to plot points on a
three dimensional grid representing values in a three
dimensional array. Assumes high
2005 Jun 04
0
New CRAN package misc3d
The misc3d package provides a small collection of mostly rgl-based
functions for 3D data:
contour3d Uses rgl to render isosurfaces, or three-dimensional
contours, computed by the marching cubes algorithm.
image3d Crude 3d analog of image() using rgl to plot points on a
three dimensional grid representing values in a three
dimensional array. Assumes high
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)
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.
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
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]]
2010 Mar 03
2
Screen settings for point of view in lattice and misc3d
I'm making some 3D plots with contour3d from misc3d and wireframe from lattice. I want to view them from below; i.e. the negative z-axis. I can't figure out how to do so. I would like my point of view looking up from below, with the z, y, and x axes positive going away. Can anyone tell me the correct settings for screen to achieve this? Here is what I've found so far:
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=
2008 Dec 11
4
how to plot implicit functions
Dear R users --
I think this question was asked before but there was no reply to it.
I would appreciate any suggestion any of you might have. I am
interested in plotting several "implicit functions" (F(x,y,z)=0) on
the same fig. Is there anyone who has an example code of how to do
this?
Thank you
Yihsu
2009 Apr 28
1
image3d in misc3d
Hi,
I'm trying to make sense of the image3d plots in misc3d. Unfortunately I can't find any authors on the help pages of the function to e-mail directly. In the following toy example, I'm puzzled as to why (1) the positions of the image plot on the axes include negative values when I think I've specified all to be 1:3 and (2) the logic that needs to be adhered to in order to
2004 Aug 27
1
Plotting irregular grid as image or persp
Hi,
I have an array of 2d node locations and an array triangles, and would
like to plot something like a image or persp.
An example of doing it with rgl is:
library(ncdf)
library(rgl)
# wget http://www.maplepark.com/~drf5n/extras/teapot.nc
teapot<-open.ncdf("teapot.nc")
z<-get.var.ncdf(teapot,"tris")
l<-get.var.ncdf(teapot,"locations")
2019 Sep 16
0
[External] REprintf could be caught by tryCatch(message)
You can file it as a wishlist item in the bug trackign system. Without
a compelling case or a complete and well tested patch or both I doubt
it will rise to the top of anyone's priority list.
Best,
luke
On Sun, 15 Sep 2019, Jan Gorecki wrote:
> Thank you Luke for prompt reply.
> Is it possible then to request a new function to R C API "message"
> that would equivalent to
2019 Nov 01
0
[External] R C api for 'inherits' S3 and S4 objects
On Fri, 1 Nov 2019, Jan Gorecki wrote:
> Thank you Luke.
> That is why I don't use Rf_inherits but INHERITS which does not
> allocate, provided in the email body.
Your definition can allocate because STING_ELT can allocate.
getAttrib can GC in general. Currently it would not GC or allocate in
this case, but this could change.
You can't assume thread-safety for calls into the R
2020 Oct 29
0
[External] Something is wrong with the unserialize function
I found that also; fixed in r79386 in the trunk. Will port to R-patched
shortly.
Best,
luke
On Thu, 29 Oct 2020, Martin Morgan wrote:
> This
>
> Index: src/main/altrep.c
> ===================================================================
> --- src/main/altrep.c (revision 79385)
> +++ src/main/altrep.c (working copy)
> @@ -275,10 +275,11 @@
> SEXP psym =
2018 Jul 26
1
Possible bug: R --slave --interactive stdin echo on Linux when stdin is a fifo
On Thu, 26 Jul 2018, G?bor Cs?rdi wrote:
> On Thu, Jul 26, 2018 at 1:43 PM <luke-tierney at uiowa.edu> wrote:
>>
>> On Thu, 26 Jul 2018, G?bor Cs?rdi wrote:
>>
>>> On Thu, Jul 26, 2018 at 12:25 PM Barry Rowlingson
>>> <b.rowlingson at lancaster.ac.uk> wrote:
>>>>
>>>> On Thu, Jul 26, 2018 at 12:22 AM, G?bor Cs?rdi
2015 Jan 23
0
:: and ::: as .Primitives?
On Thu, 22 Jan 2015, Michael Lawrence wrote:
> On Thu, Jan 22, 2015 at 11:44 AM, <luke-tierney at uiowa.edu> wrote:
>>
>> For default methods there ought to be a way to create those so the
>> default method is computed at creation or load time and stored in an
>> environment.
>
> We had considered that, but we thought the definition of the function
>
2019 Jun 05
0
[External] undefined symbol errors when compiling package using ALTREP API
For now you can use
R_altrep_inherits(x, R_compact_intseq_class)
The variable R_compact_intseq_class should currently be visible to
packages on all platforms, though that may change if we eventually
provide a string-based lookup mechanism, e.g. somehting like
R_find_altrep_class("compact_intseq", "base")
Best,
luke
On Tue, 4 Jun 2019, Mark Klik wrote:
> Hi Gabriel,
2005 Jul 11
3
misc3d package
Hi,
I am trying to install the misc3d package on a Windows (XP) installation of R 2.0.1 using install.packages("misc3d") but with no success. I have used this approach with other packages OK, but for misc3d I get the following output...
trying URL `http://cran.r-project.org/bin/windows/contrib/2.0/PACKAGES'
Content type `text/plain; charset=iso-8859-1' length 27996 bytes
2020 Nov 17
1
[External] exists, get and get0 accept silently inputs of length > 1
Come on, folks. There is no NSE involved in calls to get(): it's
standard evaluation all the way into the C code. Prior to the change a
first argument that is anything other than a character vector would
produce an error. After the change, passing in a symbol will do the
obvious thing. Code that worked previously without error (i.e. called
get() with string values) will continue to work
2019 Oct 07
0
[External] Re: should base R have a piping operator ?
On Mon, 7 Oct 2019, Lionel Henry wrote:
>
>
>> On 7 Oct 2019, at 17:04, Tierney, Luke <luke-tierney at uiowa.edu> wrote:
>>
>> Think about what happens if an
>> argument in a pipe stage contains a pipe. (Not completely
>> unreasonable, e.g. for a left_join).
>
> It should work exactly as it does in a local environment.
>
> ```
> `%foo%`