Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

Difference in coord_cartesian and scale_y_continuous

$
0
0

@harry wrote:

I am currently trying to plot a boxplot using a ggplot2 package of R. I am plotting a factor variable on the x-axis and continuous variable on the y-axis.

I have used two type of layer in my plot.

qplot(x=gender,y=friend_count,data=subset(pf,!is.na(gender)),geom='boxplot')+scale_y_continuous()

qplot(x=gender,y=friend_count,data=subset(pf,!is.na(gender)),geom='boxplot')+coord_cartesian()

I want to know the difference between this two layer because I am getting slightly different plots.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles