What's missing is me exiialnpng this line Either type it in one line, with no line-breaks, from the command line. i.e. Code:1ggplot small +geom_point aes x=carat,y=price,colour=cut +scale_y_log10 +facet_wrap ~cut +ggtitle "First example" Or store the ggplot2 object in a variable and build it bit