Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add_track width etc #6

Open
joe-jhou2 opened this issue Jun 23, 2023 · 3 comments
Open

add_track width etc #6

joe-jhou2 opened this issue Jun 23, 2023 · 3 comments

Comments

@joe-jhou2
Copy link

Hi, I wonder if any parameter has been implemented to modify the width, and font size in the add_track function? Thanks.

@joe-jhou2
Copy link
Author

The other issue I encounter is, cluster_colors conflict with circ_data$color variable.
When I assign color in the circ_data, and leave col.use= NULL. the UMAP will use the color I assign into the circ_data. But the cluster color on the track will be random.

If I set up the cluster_colors by c("#005300", "#B00068", "#1CBE4F) or ("CD3 EM" = "#005300", "CD3 Effector" = "#B00068"). It seems the color in circ_data will be deprecated. but cluster_colors wouldn't be used in the order of clusters.

@HaojiaWu
Copy link
Owner

Hi @mimisikai
You can rearrange the cell type order in your Seurat object as per your preference using the following code:

levels(your_seurat) <- c("desired_order_of_cell_types")

Then make sure to assign colors in the same order as the cell types you've just set:

color_celltype <- c("colors_corresponding_to_each_cell_type")

Let me know if that doesn't work.

@HaojiaWu
Copy link
Owner

HaojiaWu commented Nov 7, 2023

track width is now controlled by the track_lwd parameter.
Please reinstall the package:

devtools::install_github("HaojiaWu/plot1cell")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants