Open kalen-rasmussen opened 6 years ago
I'm having this issue as well - any news?
Heya @kalen-rasmussen and @Marieag,
plot_ordisurf
function is now available for usage as part of the package.
Using @kalen-rasmussen's example above, this should work fine. This will soon be updated in the tutorial.
ord.res2 <- ordination(SMU.BA.Rare, which_distance = "bray", method = "NMDS", grouping_column = "Distance", pvalue.cutoff = 0.05)
ord.res2.sol <- ord.res2$solution
p <- plot_ordisurf(sol = ord.res2.sol, meta_table = SMU.BA.Rare.meta, env.variable = 'Temperature', grouping_column = "Distance")
print(p)
@kalen-rasmussen, kindly note that, you may want to play around with the p-value threshold to get rid of the error reported earlier.
Great, thank you!
I am getting a the following error with plot_ordisurf
:
meta_table <- sample_data(ps)
ord.res2 <- ordination(psN, which_distance = "bray", method = "NMDS", grouping_column = "Treatment", pvalue.cutoff = 0.05)
ord.res2.sol <- ord.res2$solution
p <- plot_ordisurf(sol = ord.res2.sol, meta_table = meta_table, env.variable = 'Total_C', grouping_column = "Treatment")
print(p)
Error in model.frame.default(formula = y ~ 1 + x1 + x2, weights = w, drop.unused.levels = TRUE) : invalid type (list) for variable 'y'
I am getting a the following error with
plot_ordisurf
:
meta_table <- sample_data(ps)
ord.res2 <- ordination(psN, which_distance = "bray", method = "NMDS", grouping_column = "Treatment", pvalue.cutoff = 0.05)
ord.res2.sol <- ord.res2$solution
p <- plot_ordisurf(sol = ord.res2.sol, meta_table = meta_table, env.variable = 'Total_C', grouping_column = "Treatment")
print(p)
Error in model.frame.default(formula = y ~ 1 + x1 + x2, weights = w, drop.unused.levels = TRUE) : invalid type (list) for variable 'y'
I am having the same issue as @giriarteS ... There seems to be lots of issues for me trying to complete the workflow both with the pitlatrine data and my own. :/
Has anyone solved the error: Error in model.frame.default(formula = y ~ 1 + x1 + x2, weights = w, drop.unused.levels = TRUE) : invalid type (list) for variable 'y'
Hello,
I am trying to run the plot_ordisurf function function, however it doesn't seem to exist within the downloaded R package. however it doesn't seem to exist in the current version of the package. I tried to build out the function using the source code:
However, after trying to use the function as:
I keep getting the following error: Error in scores.default(x, choices = choices, display = display, ...) : cannot find scores
So I then tried to sub set the ordination data do only contain the solution data, so the code could find the points df and ran it again as:
Only to receive this error, which I have not been able to figure out. since the solution$points df is a 70x2 df and should have the same number of rows.
Error in data.frame(x = sol$points[, 1], y = sol$points[, 2], Groups = groups) : arguments imply differing number of rows: 70, 0
any help would be much appreciated, -K