code: function (id) {
              var self = this;
              var plot = {};
  
              // Get plot options and store it
              plot.options = self.getElemOptions(
                  self.options.map.defaultPlot,
                  (self.options.plots[id] ? self.options.plots[id] : {}),
                  self.options.legend.plot
              );
  
              // Set plot coords
              self.setPlotCoords(plot);
  
              // Draw SVG before setPlotAttributes()
              if (plot.options.type === "svg") {
                  plot.mapElem = self.paper.path(plot.options.path);
              }
  
              // Set plot size attrs
              self.setPlotAttributes(plot);
  
              // Draw other types of plots
              if (plot.options.type === "square") {
                  plot.mapElem = self.paper.rect(
                      plot.options.attrs.x,
                      plot.options.attrs.y,
                      plot.options.attrs.width,
                      plot.options.attrs.height
                  );
              } else if (plot.options.type === "image") {
                  plot.mapElem = self.paper.image(
                      plot.options.attrs.src,
                      plot.options.attrs.x,
                      plot.options.attrs.y,
                      plot.options.attrs.width,
                      plot.options.attrs.height
                  );
              } else if (plot.options.type === "svg") {
                  // Nothing to do
              } else {
                  // Default = circle
                  plot.mapElem = self.paper.circle(
                      plot.options.attrs.x,
                      plot.options.attrs.y,
                      plot.options.attrs.r
                  );
              }
  
              self.initElem(id, 'plot', plot);
  
              return plot;
          }
docs: /*
  Draw the plot