Hi John,
This should do what you want. I've changed your data.frame name for my own
convenience to "dat1".
###===
dat1 <- data.frame(
Time = c("Age.25","Age.35","Age.45","Age.55"),
Medians = c(128.25,148.75,158.5,168.75)
)
# create segments data.frame
Hi John,
I'm not sure how to do this with ggplot, but:
Time<- c("Age.25","Age.35","Age.45","Age.55")
Medians<-c(128.25,148.75,158.5,168.75)
> is.character(Time)
# [1] TRUE - thus it has no intrinsic numeric value to plot
> is.numeric(Medians)
# [1] TRUE
# coerce Medians to factor and then plot aga
I am trying to plot four points, and join the points with lines. I can plot the
points, but I can't plot the points and the line.
I hope someone can help my with my ggplot code.
# load ggplot2
if(!require(ggplot2)){install.packages("ggplot2")}
library(ggplot2)
# Create data
Time <- c("Age.
3 matches
Mail list logo