A number of problems.
The variable names are not helpful. PointEstx is not a point it is a value. I
need an x and a y coordinate for a point.
row1 is not defined
While there is a function data.frame(), there is no data_frame(). Making this
change gives an error that row1 is not defined. I solved
Please run your code before you send it. Your example is not reproducible.
library(ggplot2)
linedata<- data.frame(
PointEstx = c( 1, 2 )
, PointEsty = c( 1, 1.5 )
)
# make sure we have a data frame
str(linedata)
#plot the data
ggplot(
linedata
, aes( x = PointEstx
, y = PointEsty
)
2 matches
Mail list logo