Closed:Ggplot2: Plot X Axis As Y= 0 Line
0
0
Entering edit mode
10.1 years ago

Salutations:

I'm making a figure in R using ggplot2, I actually have a copy of the R Graphics Cookbook, but they seemed to neglect any option to move the X axis to the origin.

Please look at this figure to see what exactly I need help with

This is how I dealt with it in base R

> plot(..., xant='n")
> axis(0,pos=1)

But I'm a little lost in ggplot2

Tusen takk.

r data • 1.6k views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 1467 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6