在R中,您可以使用以下内容来删除轴值:
x <- 1:20
y <- runif(20)
plot(x, y, axes=FALSE, frame.plot=TRUE)
Axis(side=1, labels=FALSE)
Axis(side=2, labels=FALSE)
输出:
如此回答中所提到的,您可以通过以下方式删除轴值和刻度标记:
import Pkg
Pkg.add("Plots")
using Plots
# generating vectors
# x-axis
x = 1:10
# y-axis
y = rand(10)
# simple plotting
plot(x, y, ticks = false)
输出:
是否可能只删除轴上的值而保留刻度线,就像R示例中一样?