Hello,
I am very used to run this script and never got any problems. It’s look like it concerns most setting of graphs?
- Error 2: in plot arrow
plotArrow(final.mbspls.model, ind.names = FALSE,
-
group=groups[,2],
-
pch = list(lipid = 1, microbe = 6, metabolite = 7), pch.size = 3)
Error in plotArrow(final.mbspls.model, ind.names = FALSE, group = groups[, :
‘pch’ must be either a single value, or a vector whose names are the block names and whose values are the plot characters
- Error 2: in Diablo
plotDiablo(final.mbspls.model, ncomp = 1)
Error in .External.graphics(C_layout, num.rows, num.cols, mat, as.integer(num.figures), :
invalid graphics state
*Error 3: in correlation circle plot
##Correlation circle plot with different symbols and colors
plotVar(final.mbspls.model, var.names = FALSE,
-
style = 'graphics', legend = TRUE,
-
pch = c(16, 17, 15), cex = c(2,2,2),
-
col = c('darkorchid', 'brown1', 'lightgreen'))
Error in .External.graphics(C_strWidth, as.graphicsAnnot(s), pmatch(units, :
invalid graphics state
I have honestly no clue on what could going because for the arrow and diablo plot I always copy past without editing anything. Same for correlation circle plot: since I found the right settings, I never touched anything.
Do you see a problem?
Best regards
Geraldine