Change Title, Axis labels, legends, Scaling (ggplot2)

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • In this video we will explore how to change title, axis labels, legends, scaling of axis in ggplot2. Data used in the video can be downloaded from drive.google.c...

Комментарии • 16

  • @ifeanyiattamah8121
    @ifeanyiattamah8121 2 года назад

    The most useful video I have seen on this topic. No jokes.

  • @joro2417
    @joro2417 2 года назад

    Very nice video my friend. You are the Lionel Messi of R coding.

  • @lody33100
    @lody33100 Год назад

    That was absolutely helpful 👌

  • @chandrasingh5856
    @chandrasingh5856 2 года назад

    @BioQuests :-) Thanks for knowledgeable videos... It's make my lots of basic fundamental things very clear and crystal. Just request you to have some videos on data labels in charts as some of data needs to represent with numbers.

    • @bioinfquests
      @bioinfquests  2 года назад

      Yes am planning to add few videos. Thanks for the suggestions.

  • @bimalkumarchhetri4012
    @bimalkumarchhetri4012 Год назад

    how to italisize part of axis labels only?

  • @brightamenu1617
    @brightamenu1617 2 года назад

    I was waiting for the main title, I want to change the position, font type, and font size how will I go about it

    • @bioinfquests
      @bioinfquests  2 года назад

      For text size, u can use element_text function and set size parameter. for font type, use family parameter.

  • @ahmed007Jaber
    @ahmed007Jaber 2 года назад

    Thank u for this
    I have this bar plot that makes frequency of categories
    Given the database is 250k, i have very long frequncy labels that when plotting get mixed with other frequencies. How to change them? Say divid frequencies by 1000

    • @bioinfquests
      @bioinfquests  2 года назад

      How many categories u are getting. If i understood correctly u r saying that you have so many categories, each bar overlap with nearby bar? Can you elaborate more since its not clear.
      If you are saying that y axis value is high, you can represent frequency as percentage as well.

    • @ahmed007Jaber
      @ahmed007Jaber 2 года назад

      @@bioinfquests i have about 6 categories, when i do bar plot, the results are the count of each category. the length of the database is 250,000 rows. when I do count for these categories the frequency i.e. number get mixed up

    • @bioinfquests
      @bioinfquests  2 года назад

      Sorry not able to understand what number gets mixed up means..since there are 6 categories and total 250k values, u will get 6 frequency values which will add to total 250k. So it should plot fine, x being the category and y being the value.

    • @ahmed007Jaber
      @ahmed007Jaber 2 года назад

      @@bioinfquests hi thank you for this. I have about 6 categories i.e. bars and the dataset is very long 250,000 records. so when I have some of them use numbers in the 100,000 the get mixed up. wonder if i make adjustments to make numbers display well without getting inter linked. I actually thought of making the division in the dataset now by 1000 for example

    • @bioinfquests
      @bioinfquests  2 года назад

      @@ahmed007Jaber you can display the frequency as percentage as well so that y axis will be in the scale of 0-100.