Comments (3)
Hello @russejenn
Note that you're using a syntax that is no longer supported (kept for backwards compatibility). I'm suggesting below the easier-to-use version of the same code you have (using Nonpareil.set
instead of Nonpareil.curve.batch
).
There are two ways to achieve this.
My preferred option is to turn off the legend first, and then plot the legend separately:
samples <- read.table('Nonpareil.samples.txt', sep = '\t', header = TRUE, as.is = TRUE)
non <- Nonpareil.set(samples$File,
labels = samples$Name,
plot.opts = list(plot.model = FALSE, legend.opts = FALSE))
Nonpareil.legend(non, 'topright')
However, you can also achieve that with a single command:
samples <- read.table('Nonpareil.samples.txt', sep = '\t', header = TRUE, as.is = TRUE)
non <- Nonpareil.set(samples$File,
labels = samples$Name,
plot.opts = list(plot.model = FALSE, legend.opts = list(x = 'topright')))
from nonpareil.
Please feel to reopen if this doesn't work for you
from nonpareil.
Hello!
First, a big THANK YOU for making nonpareil and its documentation.
This is just a comment on manipulating legends. I had a similar issue to others that have posted regarding legends. I wanted to share what worked for me. As was already mentioned, any argument in legend() can be applied to legend.opts .
I found cex = XX to be an easy fix to shrink or enlarge a legend. For example,
Nonpareil.set(File, col=Color, labels=Name, plot.opts = list(legend.opts = list(cex = 0.6)))
shrank my legend so all of it could be visible.
Hope this helps someone!
Take Care,
Rene
from nonpareil.
Related Issues (20)
- "Picking N random sequences" forever HOT 5
- How to set -X and -n HOT 2
- Systematic bias at low coverage (under 20%)
- Using np to target subsampling HOT 1
- meaning of warning / use of -L in kmer mode HOT 1
- Not reproducible results HOT 5
- number of initial reads HOT 1
- Throat metagenomes HOT 2
- Error in file(con, "r") : invalid 'description' argument HOT 2
- Re-add factor to curve? HOT 1
- Fatal error: Reduce the number of query reads (-X) HOT 1
- input files for Nonpareil 3 HOT 2
- Bug in arrow placement with R packages? HOT 2
- No output files HOT 2
- Data underlying figure 2 in doi 10.1128/mSystems.00039-18? HOT 3
- docs on the curve plot
- Nonpareil exiting after "Evaluating consistency"
- nonpareil failing with too few reads
- Missing similarity (-S) option in usage output
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nonpareil.