• Register
0 votes
606 views

Problem :

I need answer to bellow issue
don't know how to automatically pick scale for object of type data.frame. defaulting to continuous.
6 5 3
6,930 points

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:

9 7 4
38,600 points

Related questions

0 votes
1 answer 15 views
1 vote
1 answer 39 views
39 views
Problem: I am a naive to R. I am trying to create the bar graph using the ggplot2 to compare a type of 2016 primary election and the Bernie Sanders's respective percentage of the votes in that election. I have below code: y = $ Type : Factor w/ 2 levels ... data of class uneval. I have already tried to search the solution on above error around but because of some unknown reasons to me I am stuck.
asked May 27 Martin K 6.6k points
1 vote
1 answer 27 views
27 views
Problem : I am trying to understand R and I am very new to Programming as wel. If I try to create the box chart with the use of standard error bars I often face below error message: “Error: ggplot2 doesn't know how to deal with data of class numeric”. Looking for help in quick fixing the above error.
asked May 5 stewart 4k points
1 vote
2 answers 48 views
48 views
Problem : I have recently started using R I am very new to R while working on R I am facing the below error whenever I try to create the graph on the ggplot: “Error: ggplot2 doesn't know how to deal with data of class gg/ggplot” I often face the error message if ... = Cost)) MyCars %>% ggplot() %>% geom_point(mapping = aes(x = Destination, y = Cost)) I need help in fixing above error.
asked Mar 30 morrisBson 3.2k points
0 votes
1 answer 42 views