From 5f96c69d68ca5b6c707d74324e2234be240c97f5 Mon Sep 17 00:00:00 2001 From: Brendan Klare Date: Sat, 10 Aug 2013 11:30:38 -0400 Subject: [PATCH] Point/line plot for precision recall curve --- openbr/core/plot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbr/core/plot.cpp b/openbr/core/plot.cpp index 2efcbb3..fdd9a78 100644 --- a/openbr/core/plot.cpp +++ b/openbr/core/plot.cpp @@ -329,7 +329,7 @@ bool PlotDetection(const QStringList &files, const File &destination, bool show) QString(" + scale_x_log10() + scale_y_continuous(labels=percent) + annotation_logticks(sides=\"b\") + ggtitle(\"%1\")\n\n").arg(type))); foreach (const QString &type, QStringList() << "Discrete" << "Continuous") - 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\"") + + 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)) + (p.major.size > 1 ? QString(", colour=factor(%1)").arg(p.major.header) : QString()) + (p.minor.size > 1 ? QString(", linetype=factor(%1)").arg(p.minor.header) : QString()) + QString(", xlab=\"Recall\", ylab=\"Precision\") + theme_minimal()") + -- libgit2 0.21.4