Commit 5f96c69d68ca5b6c707d74324e2234be240c97f5

Authored by Brendan Klare
1 parent ff04e847

Point/line plot for precision recall curve

Showing 1 changed file with 1 additions and 1 deletions
openbr/core/plot.cpp
@@ -329,7 +329,7 @@ bool PlotDetection(const QStringList &files, const File &destination, bool show) @@ -329,7 +329,7 @@ bool PlotDetection(const QStringList &files, const File &destination, bool show)
329 QString(" + scale_x_log10() + scale_y_continuous(labels=percent) + annotation_logticks(sides=\"b\") + ggtitle(\"%1\")\n\n").arg(type))); 329 QString(" + scale_x_log10() + scale_y_continuous(labels=percent) + annotation_logticks(sides=\"b\") + ggtitle(\"%1\")\n\n").arg(type)));
330 330
331 foreach (const QString &type, QStringList() << "Discrete" << "Continuous") 331 foreach (const QString &type, QStringList() << "Discrete" << "Continuous")
332 - p.file.write(qPrintable(QString("qplot(X, Y, data=%1PR%2").arg(type, (p.major.smooth || p.minor.smooth) ? ", geom=\"smooth\", method=loess, level=0.99" : ", geom=\"line\"") + 332 + p.file.write(qPrintable(QString("qplot(X, Y, data=%1PR%2").arg(type, (p.major.smooth || p.minor.smooth) ? ", geom=\"smooth\", method=loess, level=0.99" : QString(", geom=\"%1\"").arg(plotType)) +
333 (p.major.size > 1 ? QString(", colour=factor(%1)").arg(p.major.header) : QString()) + 333 (p.major.size > 1 ? QString(", colour=factor(%1)").arg(p.major.header) : QString()) +
334 (p.minor.size > 1 ? QString(", linetype=factor(%1)").arg(p.minor.header) : QString()) + 334 (p.minor.size > 1 ? QString(", linetype=factor(%1)").arg(p.minor.header) : QString()) +
335 QString(", xlab=\"Recall\", ylab=\"Precision\") + theme_minimal()") + 335 QString(", xlab=\"Recall\", ylab=\"Precision\") + theme_minimal()") +