Programmers learn & share
0 votes

Problem :

I need answer to bellow issue
don't know how to automatically pick scale for object of type data.frame. defaulting to continuous.
by (6.9k points)   | 163 views

1 Answer

0 votes

Solution : 

I had faced this issue in the past. I did bellow changes to resolve the issue.

Firstly you need to Change sample (your built-in function) to Sample (your variable)

ggplot(data=data1, aes(x=Sample, y=value, fill=variable)) +

geom_bar(width=1) + scale_y_continuous(expand = c(0,0)) +  opts(axis.text.x=theme_text(angle=90))

Further Readings:

by (36.1k points)  
2,183 questions
2,490 answers
241 users