KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
In a ggplot2 density plot (geom_density) I have the following y-axis labels 0.000 0.005 0.010 0.015 0.020 What is the correct way to change them to something like 0 5 10 15 20 possibly with the automatic adding of "10^3 x density" to the label. In the past I've just multiplied my data and manually changed the label, but in this case the y-axis data is generated for me by the density plot. I'm aware that I can write things like scale_y_continuous(trans="log10") , but have not found any way to do a simple multiplicative constant, or define a custom transform.
Tags (comma-separated)
Save Edits
Cancel