rgl

Error encountered while plotting right half of facial surface mesh in R by subsetting full face vertices and indices data

两盒软妹~` 提交于 2020-05-17 05:46:20
问题 I have vertices and indices data for human face here. I have a post one year ago on plotting 3D facial surface mesh based on these data. Now, I want to plot only the right half and mid-facial vertices while ignoring the left side vertices. Based on my earlier plot, I tried the following code: library(tidyverse) library(readxl) library(rgl) vb <- read_excel("...\\vb.xlsx", sheet = "Sheet1", col_names = F) it <- read_excel("...\\it.xlsx", sheet = "Sheet1", col_names = F) # Extract vertices for

Troubles installing “rgl” on Ubuntu

落花浮王杯 提交于 2020-04-08 05:44:16
问题 It seems that I have troubles isntalling the rgl package on Ubuntu. When running install.packages("rgl") I got the following error checking for gcc... gcc -std=gnu99 checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc -std=gnu99 accepts -g...

Troubles installing “rgl” on Ubuntu

混江龙づ霸主 提交于 2020-04-08 05:44:03
问题 It seems that I have troubles isntalling the rgl package on Ubuntu. When running install.packages("rgl") I got the following error checking for gcc... gcc -std=gnu99 checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc -std=gnu99 accepts -g...

How can I add rows to an R data frame every other row?

試著忘記壹切 提交于 2020-03-11 13:23:11
问题 Brief: how can I add m rows to my m X n data frame, where each new row is inserted after each existing row? I will essentially copy the existing row, but make a change to one variable. More detail: in reference to another question, I think I can do what I want with rgl's segments3d function. I have a set of x,y,z points, but these are just one end point of a set of line segments. The other end point is so many metres away in the Z dimension, given as a fourth variable: X,Y,Z,Z_Length; in my

How can I add rows to an R data frame every other row?

ε祈祈猫儿з 提交于 2020-03-11 13:21:56
问题 Brief: how can I add m rows to my m X n data frame, where each new row is inserted after each existing row? I will essentially copy the existing row, but make a change to one variable. More detail: in reference to another question, I think I can do what I want with rgl's segments3d function. I have a set of x,y,z points, but these are just one end point of a set of line segments. The other end point is so many metres away in the Z dimension, given as a fourth variable: X,Y,Z,Z_Length; in my

How can I add rows to an R data frame every other row?

巧了我就是萌 提交于 2020-03-11 13:21:18
问题 Brief: how can I add m rows to my m X n data frame, where each new row is inserted after each existing row? I will essentially copy the existing row, but make a change to one variable. More detail: in reference to another question, I think I can do what I want with rgl's segments3d function. I have a set of x,y,z points, but these are just one end point of a set of line segments. The other end point is so many metres away in the Z dimension, given as a fourth variable: X,Y,Z,Z_Length; in my

RGL package for R compile error

纵饮孤独 提交于 2020-02-28 07:47:05
问题 Attempting to compile rgl for r on arch linux x86_64. I copied just the error portion of the installation. This has occurred after I recently updated R. Any idea how to solve this? g++ -I/usr/include/R/ -DNDEBUG -DHAVE_PNG_H -I/usr/include/libpng16 -DHAVE_FREETYPE -Iext/ftgl -I/usr/include/freetype2 -Iext -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -fvisibility=hidden -fpic -march=x86-64 -mtune=generic -O2 -pipe -fstack

Installing “rgl” package in R, Mac OSX El Captian

拈花ヽ惹草 提交于 2020-01-20 04:54:24
问题 I'm new to programming in R so I apologise in advance if I seem naive. I want to be able to do some principal components analysis on my data in 3D. I read that the "pca3d" function is good for this, but I need to download the "rgl" library. When I use install.packages it asks: install.packages("rgl") There is a binary version available but the source version is later: binary source needs_compilation rgl 0.95.1201 0.95.1367 TRUE Do you want to install from sources the package which needs

3D interactive surface plot with spatial data

给你一囗甜甜゛ 提交于 2020-01-14 02:33:07
问题 I would like to create an interactive 3D surface plot of depths in a lake, ideally using the plotly or rgl libraries. I have extracted my data from a SpatialLinesDataFrame of contour lines in Gauss-Krueger/EPSG:31468 CRS, i.e. metric units. Now each contour line produces a set of coordinates with the same depth value. The resulting data frame is rather large, but looks something like this: set.seed(41) xx <- rnorm(100,4448929,100) yy <- rnorm(100,5308097,100) zz <- c(rep(-10,10),rep(-20,10)

.png output for each row of data.frame and making .gif animation

百般思念 提交于 2020-01-07 09:45:27
问题 I have some trouble with generating .png from each rows of data frame. Basically, I want to rbind each one of the row of df to coordinate_sys . For each row of df together with coordinate_sys , a coordinate system and one a unit vector "J" should be generated like in this Finally, after generating a .png file for each unit_vector, I would like to make .gif animation. here is the reproducible code of my script; library(matlib) library(rgl) set.seed(12) x <- runif(10,-0.14,0.1) y <- runif(10,-0