Last chance! 50% off unlimited learning
Sale ends in
Click on a point in plot region and it will tell you what is the point.
show_name(
points = NULL,
x = NULL,
y = NULL,
names = NULL,
col = "red",
silent = FALSE
)
A list with x, y and names elements
The x coordinates
The y coordinates.
The names of the points
Color of the legend.
TRUE or FALSE
Name of the point
Show the name of a point
plot_errorbar
Other plot and barplot functions:
ScalePreviousPlot()
,
barplot_errbar()
,
plot_add()
,
plot_errbar()
# NOT RUN {
k <- plot_errbar(1:100, rnorm(100, 1, 2),
xlab="axe x", ylab="axe y", bty="n", xlim=c(1,100),
errbar.x=2, errbar.y=rnorm(100, 1, 0.1))
show_name(k)
k <- plot_errbar(1:10, rnorm(10, 1, 2),
xlab="axe x", ylab="axe y", bty="n", xlim=c(1,10),
errbar.x=2, errbar.y=rnorm(10, 1, 0.1),
names=LETTERS[1:10])
show_name(k)
k <- plot_errbar(1:10, rnorm(10, 1, 2),
xlab="axe x", ylab="axe y", bty="n", xlim=c(1,10),
errbar.x=2, errbar.y=rnorm(10, 1, 0.1))
show_name(k, names=LETTERS[1:10])
# }
Run the code above in your browser using DataLab