使用 R 包 hyperSpec 绘图并创建 hyperSpec 基本对象

Plotting with the R package hyperSpec and creating a hyperSpec basic object

我目前正在尝试提高我的绘图技能...再次-.- 功能数据是我大部分时间想要绘制的。通常我只是通过使用 ggplot2 并将数据整理成正确的格式来做到这一点。但现在我偶然发现了 package "hyperSpec" which is obviously designed for people like me. This package is actually using the environment of ggplot2. The problem is that I am struggling with creating the basic object needed to use this package. I do not know how my data should look like, even after reading the manual:frowning: 第 3 页解释了如何创建这样一个对象,但我未能理解...

有人可以帮我吗?

  1. 带有选项 rownames = TRUE 的函数 as.long.df 可能有助于准备 hyperSpec 数据以使用 ggplot2 绘图。

  2. 在 R 控制台中键入 ?hyperSpec::initialize 以获得有关如何创建新 hyperSpec 对象的帮助。