% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/print.R \name{print.gsplot} \alias{print.gsplot} \title{gsplot show} \usage{ \method{print}{gsplot}(x, ...) } \arguments{ \item{x}{gsplot object} \item{\dots}{Further graphical parameters may also be supplied as arguments.} } \description{ Shows gsplot in the plot window. } \examples{ gs <- gsplot() \%>\% points(1, 2, legend.name="Cool points", xlim=c(0,NA)) \%>\% lines(x=1:5, y=1:5, legend.name="Cool lines", ylab='taco night') \%>\% legend(location="topleft") print(gs) # dropping 'print()' around the object works the same way # (however, use 'print()' explicitly when in a loop) gs <- gsplot() \%>\% points(1, 2, legend.name="Cool points", xlim=c(0,NA)) \%>\% lines(x=1:5, y=1:5, legend.name="Cool lines", ylab='taco night') \%>\% legend(location="topleft") gs gs <- gsplot() \%>\% points(1, 2) \%>\% lines(x=1:5, y=1:5, side=c(3,4)) gs }