• About Me
  • Contact Me
  • Cookie Policy (EU)

Data Cornering

  • Twitter
  • Facebook
  • LinkedIn
  • Plot moving average in R using ggplot2

    Plot moving average in R using ggplot2

    Here is how to plot the moving average (rolling average or running average) in R using ggplot2 and add actual data in different ways. In that way, you can track the moving average and look at the data around that. Sometimes it helps to spot anomalies in time series.

    February 12, 2023

    in

    R, RDataViz
  • How to get the sum by group in R

    How to get the sum by group in R

    Here are multiple examples of getting the sum by group in R using the base, dplyr, and data.table capabilities. Depending on the situation, you can choose in your scenario what is the best solution.

    February 12, 2023

    in

    R
  • Multi-level axis labels in R plot using ggplot2

    Multi-level axis labels in R plot using ggplot2

    Here is an example of how to create multi-level axis labels in an R plot using ggplot2. You can separate them into 2 levels on a plot x-axis or more. It depends on the situation.

    February 5, 2023

    in

    DataViz, R, RDataViz
  • Send HTML emails from R by using Outlook

    Send HTML emails from R by using Outlook

    Here is a relatively simple way to send HTML emails from R by using Outlook. Besides Microsoft Outlook, there are options not mentioned in this post, but some of the ideas might be useful in those too. HTML emails from R are a great way to share insights by integrating plots or tables in the […]

    February 5, 2023

    in

    R
  • Color gradient in R jitter plot using midpoint or group

    Color gradient in R jitter plot using midpoint or group

    Here is how to use the color gradient in R jitter plot using midpoints or different gradients by a group. A good jitter plot in R makes it easier to view overlapping data points by categories. Color gradients might help to see differences better.

    February 4, 2023

    in

    R, RDataViz
  • Value from next or previous row in R data frame using data.table

    Value from next or previous row in R data frame using data.table

    If you are working with large datasets and want to get value from the next or previous row in R, try to use the data.table. It is possible to do the same with base R or dplyr, but it might be too slow. Basically, this approach with the data.table to get value from the next […]

    February 4, 2023

    in

    R
  • How to modify plot title in R using ggplot2

    How to modify plot title in R using ggplot2

    Here is how to add and modify the plot title in R using ggplot2 in many ways. After adding the ggplot2 title and subtitle, you might want to change the alignment, color, and size, add a bold effect to all or a few words, and do other customizations. Here are multiple examples of that.

    January 28, 2023

    in

    R, RDataViz
  • Jitter chart in Power BI with average line by categories

    Jitter chart in Power BI with average line by categories

    Here is how to create a jitter chart in Power BI with averages by categories and using only Power BI and DAX capabilities. No custom visualizations are necessary. A jitter chart makes it easier to view overlapping data points by categories.

    January 27, 2023

    in

    DataViz, Power BI, PowerBIDataViz
  • How to add GIF animation to plot in R

    How to add GIF animation to plot in R

    Here is how to add GIF animation to the plot in R and draw extra attention. You can take a static ggplot2 plot and join it with GIF frames. As a result, you can create GIF in R with an infinite or finite loop.

    January 22, 2023

    in

    R, RDataViz
  • NAs introduced by coercion in R

    NAs introduced by coercion in R

    If you see the warning NAs introduced by coercion in R, don’t panic. It is not necessarily bad, but you should understand if that is acceptable. This warning message usually appears by converting non-numerical values to numerical values with functions like as.numeric or as.integer. It may also appear by creating plots where the correct data […]

    January 22, 2023

    in

    R
←Newer Posts Older Posts→


Data Cornering

Copyright © Data Cornering All Rights Reserved

Proudly powered by WordPress

Manage Cookie Consent
We use technologies like cookies to store and/or access device information. We do this to improve browsing experience and to show personalised ads. Consenting to these technologies will allow us to process data such as browsing behaviour or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Manage options Manage services Manage vendors Read more about these purposes
View preferences
{title} {title} {title}