I want to be able to use geom_smooth in ggplot. However, when I typed conda install ggplot, I get the error no packages found in current win-32 channels matching ggplot. Anyone know what is going on?
7 Answers
Have you tried looking at www.binstar.org? Type in ggplot in the search bar (I have already done so and it pops up with different options, one of which is a win32 channel. Since I have already looked at it this is what you should type into the command shell:
conda install -c https://conda.binstar.org/bokeh ggplot
I have not tested since I have win64 but this should work
UPDATE: The link above is now broken try this instead
conda install -c conda-forge ggplot
3 Comments
conda install -c https://conda.binstar.org/bokeh ggplot However, I am unable to display the plot from ggplot if I use from ggplot import * and then try something like plt=ggplot(data=df,aes(x=x, y=y)) +\ geom_line() +\ stat_smooth(colour='blue', span=0.2) and then plt.show()PackagesNotFoundError :(.I think ggplot is simply not packaged for Anaconda as conda search ggplot doesn't find anything. How it can be easily installed via pip -- pip install ggplot.
6 Comments
pip install ggplot it installs successfully, but I still can't use ggplot in PyCharm. When I type import ggplot as gg, it says no module named ggplotconda install -c bokeh ggplot
https://anaconda.org/bokeh/ggplot
Also can do pip install ggplot
or sudo -H python2 pip install ggplot
Hope it helps someone although a late answer :p
Comments
Option 1
As one is using Anaconda, first of all, access the Command Prompt for the environment that one will be working on.
Then run, as per Anaconda's Documentation, use
conda install -c conda-forge r-ggplot2
Other alternatives include
conda install -c "conda-forge/label/cf201901" r-ggplot2
conda install -c "conda-forge/label/cf202003" r-ggplot2
conda install -c "conda-forge/label/gcc7" r-ggplot2
Option 2
As suggested in the official GitHub repo
# The easiest way to get ggplot2 is to install the whole tidyverse:
install.packages("tidyverse")
# Alternatively, install just ggplot2:
install.packages("ggplot2")
# Or the development version from GitHub:
# install.packages("devtools")
devtools::install_github("tidyverse/ggplot2")
Notes:
- For
RpackagesAnacondauses a special convention that usesr-before the package name, such asr-ggplot2, orr-tidyverse, and more.