error and warning messages from plotDiversityCurve()

Issue #70 resolved
Julian Zhou created an issue

Reproducible example (with v0.2.10)

div <- rarefyDiversity(ExampleDb, "SAMPLE", nboot=100)

# Plot diversity

plotDiversityCurve(div, legend_title="Sample", log_x=T, log_y=T)

**Error in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : polygon edge not found

In addition: Warning messages:

1: Transformation introduced infinite values in continuous x-axis

2: Transformation introduced infinite values in continuous x-axis**

Fine with log_x=F, log_y=F

Comments (3)

  1. Julian Zhou reporter

    I think it's because the default of min_q in rarefyDiversity is 0, so div@data$Q contains 0, which, when taking the log, gives -Inf.

  2. Log in to comment