我想在Plotly等值线图的顶部叠加一条线,类似于在矩阵图像上覆盖一条线,其中强度表示z
中R3
内的位置:# Generate an arbitrary matrix
m <- matrix(sin(1:6^2) * 1:6, nrow = 6)
# Define a path
path <- data.frame(x = c(0:7), y = c(0, 1, 2, 2, 3, 3, 4, 6))
image(x = 1:6, y = 1:6, z = m, col = gray.colors(20), xlab = "x", ylab = "y")
lines(path$x, path$y)
:
library(plotly)
plot_ly(x = 1:6, y = 1:6, z = t(m), type = "contour") %>%
add_lines(x = path$x, y = path$y)
呈现:
使用Plotly,我尝试了
R3
生成一个轮廓图,其中覆盖有空package sample;
import javafx.application.HostServices;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
public class Controller {
@FXML
private Button facebookButton;
@FXML
void toHomepage(ActionEvent event) {
}
}
空格而不是一行的线框: