Create a partial dashed line in ggplot2?

The ggplot philosopy is simple. Each element of a plot needs to be on a different layer. Thus to get two line segments in different line types, you need two geom_segment statements.

The ggplot philosopy is simple. Each element of a plot needs to be on a different layer. Thus to get two line segments in different line types, you need two geom_segment statements.

I illustrate the same principle with geom_bar in different colours for your different periods. Ggplot(dfdf$date2011, , aes(date, value), stat = "identity", fill="#336699", colour="black", alpha=0.5) + ylim(c(0,1400)) + opts(title="U.S. Smartphone Users") + opts( axis.text. Y=theme_text(family="sans", face="bold"), axis.text.

X=theme_text(family="sans", face="bold"), plot. Title = theme_text(size=14, face="bold"), axis.title. X=theme_text(family="sans"), axis.title.

Y=theme_text(family="sans", angle=90) ) + xlab("Year") + ylab("Users (in millions)") + geom_segment(aes(x=2007.6, xend=2011, y=550, yend=1050), linetype=1) + geom_segment(aes(x=2011, xend=2013, y=1050, yend=1350), arrow=arrow(length=unit(0.4,"cm")), linetype=2).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions