The grid-based graphics functions in lattice and ggplot2 create a graph object, but do not display it. The print()
method for the graph object produces the actual display, i.e.,
print(qplot(x, y))
solves the problem.
See R FAQ 7.22.
More Related Contents:
- Order Bars in ggplot2 bar graph
- ggplot with 2 y axes on each side and different scales
- Plotting two variables as lines using ggplot2 on the same graph
- Add legend to ggplot2 line plot
- Order discrete x scale by frequency/value
- Add regression line equation and R^2 on graph
- Issue when passing variable with dollar sign notation ($) to aes() in combination with facet_grid() or facet_wrap()
- Side-by-side plots with ggplot2
- How to use a variable to specify column name in ggplot
- How to save a plot as image on the disk?
- Plot two graphs in same plot in R
- Using ggplot2, can I insert a break in the axis?
- ggplot’s qplot does not execute on sourcing
- ggplot2 line chart gives “geom_path: Each group consist of only one observation. Do you need to adjust the group aesthetic?”
- Plot multiple columns on the same graph in R [duplicate]
- How do you specifically order ggplot2 x axis instead of alphabetical order? [duplicate]
- How to plot a function curve in R
- How to order data by value within ggplot facets
- Different legend-keys inside same legend in ggplot2
- Plot two graphs in a same plot
- Evaluate expression given as a string
- How do you order the fill-colours within ggplot2 geom_bar
- Difference between passing options in aes() and outside of it in ggplot2
- ggplot2 multiple scales/legends per aesthetic, revisited [duplicate]
- Apply several summary functions (sum, mean, etc.) on several variables by group in one call
- Order of operator precedence when using “:” (the colon)
- Layered axes in ggplot?
- How to get geom_vline to honor facet_wrap?
- R ggplot ordering bars within groups
- ggplot for loop outputs all the same graph