Comments (1)
Just a note: you can do option 3 now, because gl.pcoa.plot
returns an object of class ggplot
:
p <- gl.pcoa.plot(...)
p + theme_bw()
But you can only add new layers, so modifying an existing layer (e.g. to add a shape aesthetic) isn't possible.
Another alternative is to use ggplot_build
, which will allow modification of e.g. assigned aesthetics and the underlying data:
p <- gl.pcoa.plot(...)
q <- ggplot_build(p)
## hack q here
plot(ggplot_gtable(q))
But this is probably most suited to relatively advanced users (who will probably be comfortable writing their own plotting function anyway, so might not really be targeting the audience that is asking these questions of the google group. Same probably applies to option (2) above.)
from dartr.
Related Issues (20)
- gl.filter.maf issue with big dataset and nLoc HOT 3
- issue to plot pcoa on populations HOT 1
- tdummy error on last release HOT 3
- gl.filter.allna should gain recalc argument HOT 1
- gl.read.dart error
- gl.outflank() function na.rm error HOT 1
- gl.pcoa.plot no longer allows saving plot to use other ggplot2 features HOT 2
- gl.read.dart produces error during data import HOT 6
- gl.report.heterozygosity() no longer reporting number of polymorphic loci per pop HOT 2
- error in gl.report.ld.map() HOT 4
- gl.LDNe() error when mating='monogamy' HOT 2
- Problem with dartR installation HOT 7
- Issues with ggplot2 3.4.0 HOT 1
- Error in gl.filter.secondaries HOT 2
- issue with gl.impute() when method="neighbour" HOT 2
- gl2vcf issue HOT 2
- Problem with -doThetas HOT 2
- dependency on retiring spatial infrastructure packages through PopGenReport HOT 17
- gl.filter.secondaries - doesn't recognise 'best' as a method. Bug? HOT 2
- testthat installed but DartR installation failed HOT 2
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 dartr.