• Skip to secondary menu
  • Skip to main content
  • Skip to primary sidebar

Python and R Tips

Learn Data Science with Python and R

  • Home
  • Python
  • Pandas
    • Pandas 101
  • tidyverse
    • tidyverse 101
  • R
  • Linux
  • About
    • Privacy Policy

Introduction to Linear Regression in R

November 2, 2019 by cmdlinetips

linear regression: scatter plot

Linear Regression is one of the most commonly used statistical methods. Linear modeling and Linear regression helps us understand the relationship between multiple variables. In the simplest case, linear regression is about understanding the relation between two variables, X and Y. One of the ways to understand linear regression is that we have the observed […]

Filed Under: Linear Regression in R Tagged With: Linear Regression in R

Data Science From Scratch 2nd Edition: Book Review

October 28, 2019 by cmdlinetips

The second edition of Data Science from Scratch, First Principles with Python from Joel Grus is here (since the summer of 2019). The first edition of the book came about 4-5 years ago when data science as a field was nascent and majority of Python was in 2.7. There are two aspects to learn data […]

Filed Under: Beta Distribution, Data Science from Scratch, Data Science from Scratch Book Review, Python 3 Type Annotation Tagged With: Book Review, Data Science from Scratch, Data Science from Scratch 2nd Edition, Review Data Science from Scratch

How to Make a Plot with Two Different Y-axis in Python with Matplotlib ?

October 25, 2019 by cmdlinetips

Plot with two different y-axis with twinx in Python

Sometimes, as part of a quick exploratory data analysis, you may want to make a single plot containing two variables with different scales. One of the options is to make a single plot with two different y-axis, such that the y-axis on the left is for one variable and the y-axis on the right is […]

Filed Under: twinx matplotlib, two different y-axis matplotlib Tagged With: matplotlib twinx, python two y-axis

8 tips to make better barplots with ggplot2 in R

October 22, 2019 by cmdlinetips

barplot with top n

Barplots or barcharts are extremely handy visualization technique for a variety of situations. It is of great use when you have multiple of categories and quickly visualize the counts of each category. In this post, we will start with how to make simple barplots using ggplot2 in R. Then we will see many examples of […]

Filed Under: barcharts with R, barplots with ggplot2 Tagged With: barcharts in R, barplots in R, reorder barplots

How To Change Legend Title in ggplot2?

October 17, 2019 by cmdlinetips

ggplot2 change legend title with guides()

In this post, we will see multiple examples of how to change the legend title in ggplot2. When you make a plot with ggplot2 and color/highlight data points by a variable in the input dataframe, ggplot2 uses the name of the variable present in the dataframe. However, sometimes you might want to change the legend […]

Filed Under: change legend title ggplot2, R Tips, tidyverse 101 Tagged With: ggplot change legend title, ggplot2, ggplot2 legend title

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 33
  • Page 34
  • Page 35
  • Page 36
  • Page 37
  • Interim pages omitted …
  • Page 74
  • Go to Next Page »

Primary Sidebar

Subscribe to Python and R Tips and Learn Data Science

Learn Pandas in Python and Tidyverse in R

Tags

Altair Basic NumPy Book Review Data Science Data Science Books Data Science Resources Data Science Roundup Data Visualization Dimensionality Reduction Dropbox Dropbox Free Space Dropbox Tips Emacs Emacs Tips ggplot2 Linux Commands Linux Tips Mac Os X Tips Maximum Likelihood Estimation in R MLE in R NumPy Pandas Pandas 101 Pandas Dataframe Pandas Data Frame pandas groupby() Pandas select columns Pandas select_dtypes Python Python 3 Python Boxplot Python Tips R rstats R Tips Seaborn Seaborn Boxplot Seaborn Catplot Shell Scripting Sparse Matrix in Python tidy evaluation tidyverse tidyverse 101 Vim Vim Tips

RSS RSS

  • How to convert row names to a column in Pandas
  • How to resize an image with PyTorch
  • Fashion-MNIST data from PyTorch
  • Pandas case_when() with multiple examples
  • An Introduction to Statistical Learning: with Applications in Python Is Here
  • 10 Tips to customize ggplot2 title text
  • 8 Plot types with Matplotlib in Python
  • PCA on S&P 500 Stock Return Data
  • Linear Regression with Matrix Decomposition Methods
  • Numpy’s random choice() function

Copyright © 2026 · Lifestyle Pro on Genesis Framework · WordPress · Log in

Go to mobile version