Skip to content

Warnings when using "circular" and "fan" layouts #683

@willgearty

Description

@willgearty

I'm getting the following warnings when using the "circular" and "fan" layouts:

library(ggplot2)
#> Warning: package 'ggplot2' was built under R version 4.5.2
library(ggtree)
#> ggtree v4.1.1 Learn more at https://yulab-smu.top/contribution-tree-data/
#> 
#> Please cite:
#> 
#> Shuangbin Xu, Lin Li, Xiao Luo, Meijun Chen, Wenli Tang, Li Zhan, Zehan
#> Dai, Tommy T. Lam, Yi Guan, Guangchuang Yu. Ggtree: A serialized data
#> object for visualization of a phylogenetic tree and annotation data.
#> iMeta 2022, 1(4):e56. doi:10.1002/imt2.56
library(ape)
#> 
#> Attaching package: 'ape'
#> The following object is masked from 'package:ggtree':
#> 
#>     rotate
tree <- rtree(100)
ggtree(tree, layout = "circular")
#> Warning: Unknown or uninitialised column: `subgroup`.
#> Warning: Unknown or uninitialised column: `subgroup`.
#> Unknown or uninitialised column: `subgroup`.
#> Unknown or uninitialised column: `subgroup`.

Created on 2025-11-19 with reprex v2.1.1

It looks like this might be some interaction with coord_polar or coord_radial from ggplot2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions