## S3 method for class 'lpp':
superimpose(\dots, L=NULL)"lpp",
    giving both the spatial coordinates of the points and the
    linear network, or a"linnet".
    This argument is required if none of the other arguments
    is of class "lpp"."lpp" representing the combined point
  pattern on the linear network.superimpose.  Each of the arguments ...
  can be either a point pattern on a linear network
  (object of class "lpp" 
  giving both the spatial coordinates of the points and the
  linear network), or a list(x,y) or list(x,y,seg,tp)
  giving just the spatial coordinates of the points.
  These arguments must represent point patterns on the same
  linear network.
  The argument L is an alternative way to specify the linear
  network, and is required if none of the arguments ... is an
  object of class "lpp".
  The arguments ... may be marked patterns.
  The marks of each component pattern must have the same format.
  Numeric and character marks may be ``mixed''.  If there is such
  mixing then the numeric marks are coerced to character in the
  combining process. If the mark structures are all data frames,
  then these data frames must have the same number of columns and
  identical column names.
  If the arguments ... are given in the form name=value,
  then the names will be used as an extra column of marks
  attached to the elements of the corresponding patterns.
superimposeX <- rpoislpp(5, simplenet)
  Y <- rpoislpp(10, simplenet)
  superimpose(X,Y) # not marked
  superimpose(A=X, B=Y) # multitype with types A and BRun the code above in your browser using DataLab