[R] ggtree node labels

2022-01-09 Thread April Ettington
Hello, Is there a way to add nodelabels to a ggtree plot in R? Thanks in advance :) April [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] ggtree: color-code multiple paraphyletic clades

2020-11-11 Thread April Ettington
ection Group Clades, by > package ggtree author? It even seems to be the package vignette. > > [1] > > https://bioconductor.riken.jp/packages/3.8/bioc/vignettes/ggtree/inst/doc/treeManipulation.html > > > Hope this helps, > > Rui Barradas > > Às 21:59 de 11/11/2

[R] ggtree: color-code multiple paraphyletic clades

2020-11-11 Thread April Ettington
I've been using groupOTU to color paraphyletic clades in my tree based on lists of tips, but I have multiple clades I want to highlight. Is there some way to use ggplot to indicate multiple paraphyletic clades? Thank you [[alternative HTML version deleted]]

Re: [R] ggplot 3-color gradient scales

2020-08-25 Thread April Ettington
Is there a way to set it to 3 color categories instead of a gradient? Like if the color is based on the numbers in a dataframe column, can I make it so anything >1.2 is red, <0.8 is blue, and anything in the middle is green? On Mon, Aug 24, 2020 at 6:28 PM April Ettington wrote: >

Re: [R] ggplot 3-color gradient scales

2020-08-24 Thread April Ettington
"red", > mid = "yellow", > high = "blue", > midpoint = 0.5 > ) > > Hope this helps, > > Rui Barradas > > > Às 04:43 de 24/08/20, Jeff N

[R] ggplot 3-color gradient scales

2020-08-23 Thread April Ettington
Currently I am using these settings in ggplot to make a gradient from red to blue. geom_point( aes(x, y, color=z) ) + scale_colour_gradient(low = "red",high = "blue") + z is a ratio, and currently I am able to identify which have high and low values, but I'd really like to be able to distinguish

[R] Biostrings: how to add annotations to aligned sequences

2020-01-29 Thread April Ettington
I want to annotate a domain that the sequences in my alignment share, how can I do this using Biostrings? Thank you, April [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

[R] ggpubr: order of non-numeric x-axis items

2019-10-26 Thread April Ettington
Hi, When I use ggpubr with an x-axis utilizing descriptive categories (eg. bar chart for different colors of car), it sorts all of the labels alphabetically. Is there a way to change this so it shows in the order I want? Thanks, April [[alternative HTML version deleted]]

[R] Can you turn an input into a variable name?

2019-10-04 Thread April Ettington
Let's say I am parsing a file with a list of parameters followed by an equal sign, and their corresponding values, eg: color=green shape=circle and I want to use this information to create a variable called color with the value 'green' and a variable shape with the value 'circle'. However, I

[R] parsing files with "\" character

2019-08-27 Thread April Ettington
Is there any way to parse files that include the \ character in a string? When I try to use grep to extract strings with a pattern that includes "\" it fails. If there is no way to do it with R, is it possible with python or a bash script? Thank you, April [[alternative HTML version