Closed xinguo1236 closed 5 months ago
Hi. As you donot send me dataset
, I cannot repeat it. It seems like your dataset$beta_diversity$bray[rownames(t1$data_env), rownames(t1$data_env)]
is not a matrix. Please check it. If it is still there, please also send me dataset
to have a try.
Hi, dataset have sent to your email yesterday. Could you help me? Thanks a lot.
---Original--- From: "Chi @.> Date: Sun, Feb 4, 2024 12:06 PM To: @.>; Cc: @.**@.>; Subject: Re: [ChiLiubio/microeco] trans_env plot_scatterfit #Error inprivate$check_scatterfit_input(y, "y") : #The input y is neither a vectornor a matrix ! (Issue #317)
Hi. As you donot send me dataset, I cannot repeat it. It seems like your dataset$beta_diversity$bray[rownames(t1$data_env), rownames(t1$data_env)] is not a matrix. Please check it. If it is still there, please also send me dataset to have a try.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
Hi. It is ok after I use t1$dataset
to replace dataset
, which is the data that I say.
t1$plot_scatterfit(
x = "Oxygen",
y = t1$dataset$beta_diversity$bray[rownames(t1$data_env), rownames(t1$data_env)],
type = "cor",
point_size = 3, point_alpha = 0.1,
label.x.npc = "center", label.y.npc = "bottom",
x_axis_title = "Euclidean distance of pH",
y_axis_title = "Bray-Curtis distance"
)
when I run t1$plot_scatterfit( x = "Oxygen", y = dataset$beta_diversity$bray[rownames(t1$data_env), rownames(t1$data_env)], type = "cor", point_size = 3, point_alpha = 0.1, label.x.npc = "center", label.y.npc = "bottom", x_axis_title = "Euclidean distance of pH", y_axis_title = "Bray-Curtis distance" ) Error in private$check_scatterfit_input(y, "y") : #The input y is neither a vector nor a matrix !
Is anything I can do to solve the problem? Many thanks if anyone can help.