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

Values in x axis disappear when using scale_x_flowjo_fasinh() #61

Open
pablodig opened this issue Feb 17, 2020 · 1 comment
Open

Values in x axis disappear when using scale_x_flowjo_fasinh() #61

pablodig opened this issue Feb 17, 2020 · 1 comment

Comments

@pablodig
Copy link

Using the following function:

p_ch_eq <- ggcyto(transform(gat2_comp, transList), aes(x = 488 B 525/50-A, y = 640 C 670/10-A))
p_ch_eq <- p_ch_eq + geom_hex(bins = 128)
p_ch_eq + ggcyto_par_set(limits = list(x = c(0.5, 5), y = c(0, 5))) + geom_density2d(colour = "black")

I get this plot:
Rplot

As you can see the values for both axis (x and y) are displayed from 1 to 5. This is log scale. When I add the function scale_x_flowjo_fasinh() to scale up my data in the x axis I got the following plot:

Rplot01

And as you can see there are no displayed values for the x axis. Is there any way to transform the data along the x axis and at the same time display the values of that axis?

@mikejiang
Copy link
Member

mikejiang commented Feb 18, 2020

It works fine for me ,

data("GvHD")
fs <- GvHD[1:2]
p <- ggcyto(transform(fs, aes(`FL1-H`, `FL2-H`)) + geom_hex() + geom_density2d(color = "black") 
p + scale_x_flowjo_fasinh() + scale_y_log10()

image

Make sure you don't transform 488 B 525/50-A when your do transform(gat2_comp, transList) so that you end up transforming it twice as you add scale_x_flowjo_fasinh

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