Hi, I'm have a problem about the script below, please help.
panel(shape_data, names=TRUE, fac='type'palette=col_spring, names=TRUE)
Hi, I'm have a problem about the script below, please help.
panel(shape_data, names=TRUE, fac='type'palette=col_spring, names=TRUE)
What is the problem you see?
Where does the panel() function come from? It is not a function in base R
What is the object shape_data? Can you post that or a subset of it? See
I am trying to analyze my research data on the geometric morphometrics of Pitcher plants.
iam attached my script below.
Install and load required R packages:
1#Install Momocs Package
install.packages("devtools")
install.packages("ggplot2")
devtools::install_github("MomX/Momocs")
library(Momocs)
Image Data Processing:
2#Import Images (black-and-white) from Folder
shape_1 <- list.files('D:/Folder Name', full.names=TRUE)
outline_shape_1<- import_jpg (shape_1)
shape_data<- Out(outline_shape_1)
3#Show the shape’s data (Visualize dataset)
panel(shape_data, names=TRUE, fac='type'palette=col_spring, names=TRUE)
Two problems with your call to panel() is that there needs to be a comma between 'type" and palette and the names argument appears twice. Try
panel(shape_data, names=TRUE, fac='type', palette=col_spring)
It works, thank you very much.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.