The image is 5 rows and two variables I am wanting to plot and below is my code I am using.
The second image shows the results
#histogram plot
Pwill1 <- ggplot(AvgPWill, aes(Segment))+geom_histogram()
#Structure of AvgPWill
str(AvgPWill)
'data.frame': 5 obs. of 2 variables:
$ Segment: chr "Costcutter" "Innovator" "Mercedes" "Workhorse" ...
$ Values : num 2084 3595 4695 2994 3422
I am not familiar with the plot function but I tried this and received this error:
plot(AvgPWill$Segment, AvgPWill$Values)
Error in plot.window(...) : need finite 'xlim' values
In addition: Warning messages:
1: In xy.coords(x, y, xlabel, ylabel, log) : NAs introduced by coercion
2: In min(x) : no non-missing arguments to min; returning Inf
3: In max(x) : no non-missing arguments to max; returning -Inf
plot(Pwill1)
– DuckPwill1 <- ggplot(AvgPWill, aes(Values))+geom_histogram()
– Duck