plotomics
    Preparing search index...

    Function fitLegend

    • Fit a legend of n entries, and an NA entry when missing, into rows rows, listing at most max entries. Entries past the room go into a "+N more" row, and the NA entry takes the last row. When even one entry, the "+N more" row and the NA entry do not fit, the NA entry is left out first; a legend that cannot show one entry and the "+N more" row shows nothing.

      Parameters

      • n: number
      • missing: boolean
      • rows: number
      • max: number = Number.POSITIVE_INFINITY

      Returns LegendFit