File:Hill-Langmuir equation.svg

From testwiki
Jump to navigation Jump to search
    Original file (SVG file, nominally 450 × 270 pixels, file size: 107 KB)

    This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

    Summary

    Description
    English: Graph of the Hill-Langmuir equation with different values of n
    Date
    Source Own work
    Author D Wells
    SVG development
    InfoField
     The SVG code is valid.
     This plot was created with R.
     The file size of this SVG plot may be irrationally large because its text has been converted to paths inhibiting translations.
    Source code
    InfoField

    R code

    library(ggplot2)
    library(data.table)
    ka_c=0.75
    
    hill <- function(l, n=1, ka=ka_c){
      1 / (1 + (ka/l)^n)
    }
    
    ligand_conc = c(0, exp(seq(log(0.001), log(1.75), by=0.01)))
    
    data <- rbind(data.table(ligand_conc, fraction=hill(ligand_conc, 0.2), n=0.2),
                  data.table(ligand_conc, fraction=hill(ligand_conc, 0.5), n=0.5),
                  data.table(ligand_conc, fraction=hill(ligand_conc, 1), n=1),
                  data.table(ligand_conc, fraction=hill(ligand_conc, 2), n=2),
                  data.table(ligand_conc, fraction=hill(ligand_conc, 4), n=4))
    
    svg(height=3, width=5)
    ggplot(data, aes(ligand_conc, fraction, colour=forcats::fct_reorder2(as.factor(n), ligand_conc, fraction), group=n)) + 
      geom_line(data = data.table(ligand_conc=c(0.001, ka_c, ka_c), fraction=c(0.5,0.5,0), n=NA), colour="blue", linetype="dashed") +
      annotate("text", x = ka_c*1.1, y = 0.1, label = expression(italic(K[A])), colour="blue") +
      geom_line(size=1) + 
      coord_cartesian(xlim = c(-0.01,1.75), ylim = c(-0.01, 1), expand=F) +
      scale_colour_manual(values = c("black","#BD0026","#F03B20","#FD8D3C","#FECC5C"), name="Hill\nCoefficient") +
      ylab("Fraction of receptor bound by ligand") +
      xlab("Free Ligand Concentration") +
      theme_classic()
    dev.off()
    

    Licensing

    I, the copyright holder of this work, hereby publish it under the following license:
    w:en:Creative Commons
    attribution share alike
    This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
    You are free:
    • to share – to copy, distribute and transmit the work
    • to remix – to adapt the work
    Under the following conditions:
    • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
    • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

    Captions

    Graph of the Hill-Langmuir equation with different values of n

    Items portrayed in this file

    depicts

    27 April 2020

    109,253 byte

    image/svg+xml

    fb7782ac03ad507c42a484e15188e1b74da59579

    File history

    Click on a date/time to view the file as it appeared at that time.

    Date/TimeThumbnailDimensionsUserComment
    current13:42, 27 April 2020Thumbnail for version as of 13:42, 27 April 2020450 × 270 (107 KB)wikimediacommons>D WellsUploaded own work with UploadWizard

    There are no pages that use this file.