'CIEplot using pavo package

I'm using the pavo package in R to create a colorspace plot using function cieplot. My dataset is in txt file, I called it as color_space, it contains 420 observations or rows and 3 variables (lakes, x coordinates, y coordinates). The lakes column have three different names/variables (e.g., J, C, and S).

To plot the data, I called the .txt file with read.delim function in R. Then, I plot the data using the "cieplot" from "pavo". Below is my code:

library(pavo)
color_space <- read.delim("L:/Landsat Scenes/colorspace_lakes.txt") #where I save the file
View(color_space)
attr(color_space, "clrsp") <- "CIEXYZ"
cieplot(color_space) #I attached the resulting [plot image]

[1:https://i.stack.imgur.com/zzQ5n.jpg]

Now, since the colorspace plot is already in chromaticity color, I am trying to plot the 3 lake names with different symbol/shapes in the cieplot.

  • Problem: I don't know how to plot my datasets for different lake names with different shape/symbol
  • What I've tried: I tried using the plot line code from pavo documentation page but it shows an error message as follows: "Error in vismodel(rspecdata, visual = "cie10", illum = "D65", vonkries = TRUE, : wavelength range in spectra and visual system data do not match In addition: Warning message: wl column missing from input rspec data. Using arbritrary values based on object length."
  • Goal: using cieplot to plot my 3 lake names with different shape or symbol

I greatly appreciate any help on this, and glad to answer any questions.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source