作者waleic (小藍鯨)
看板R_Language
標題[問題] rayshader /mistr 找不到function
時間Fri Jun 28 05:05:02 2019
[問題類型]:
程式諮詢
[軟體熟悉度]:
入門(先前大多使用於統計分析與簡單繪圖)
[問題敘述]:
目前嘗試使用rayshader繪製3D的ggplots,跟隨網站上的codes下載package後
R studio 顯示找不到這些function
e.g. plot_gg 於rayshader,plotgg 於mistr
主要參考網站
https://www.tylermw.com/3d-ggplots-with-rayshader/
在頁面最底端語法的部分,前面部分順利完成,只差在最後一步plot_gg()
下載rayshader 時有顯示
tar: Failed to set default locale
推測沒有完成完整的下載過程,但不知道問題在哪
Google 類似function 還有mistr 的plotgg()
此package 有成功下載完全,但function 亦在環境中找不到
[程式範例]:
# 初次下載的方式
remotes::install_github("tylermorganwall/rayshader")
library(rayshader)
library(ggplot2)
# 之後嘗試另一種
devtools::install_github("tylermorganwall/rayshader")
# 最後皆顯示
Error: (converted from warning) Setting LC_TIME failed, using "C"
Execution halted
Error: Failed to install 'rayshader' from GitHub:
(converted from warning) installation of package ‘rgl’ had non-zero exit status
[環境敘述]:
R version 3.6.0 (2019-04-26)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS High Sierra 10.13.6
[關鍵字]:
rayshader,plot_gg,mistr
若有解釋問題不清楚的部分還請告訴我,
希望大家能給予指點與幫忙,非常感謝!
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 88.209.32.73 (德國)
※ 文章網址: https://webptt.com/m.aspx?n=bbs/R_Language/M.1561669510.A.942.html
1F:→ andrew43: 先單純安裝 rgl 看看是什麼問題 06/28 12:07
2F:→ waleic: 真的是rgl卡關,上網查詢後才發現需另下載XQuartz,重啟後順 06/29 03:59
3F:→ waleic: 利完成rgl,接著完整的rayshader也下載成功,完成圖囉! 謝謝 06/29 04:00
4F:→ waleic: 小小的提點 (: 06/29 04:01